colored pj

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4298 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
ac_stef
2009-03-27 14:09:54 +00:00
parent 4bf52adcfd
commit 4bb2708978
3 changed files with 13 additions and 4 deletions
+8
View File
@@ -72,6 +72,14 @@ char *colorping(int ping)
return cping;
}
char *colorpj(int pj)
{
static string cpj;
if(multiplayer(false)) s_sprintf(cpj)("\fs\f%d%d\fr", pj <= 90 ? 0 : pj <= 170 ? 2 : 3, pj);
else s_sprintf(cpj)("%d", pj);
return cpj;
}
void newname(const char *name)
{
if(name[0])