crash fixes (it's %cN, not %sN)

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6700 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
sireus
2011-11-19 20:52:30 +00:00
parent 10b3188384
commit 31994bd84c
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -39,9 +39,9 @@ void setbottimeout(int m, int t)
default: break;
}
}
else conoutf(_("%s3Error: %s5valid range for time is 1-60"), CC, CC);
else conoutf(_("%c3Error: %c5valid range for time is 1-60"), CC, CC);
}
else conoutf(_("%s3Error: %s5mode needs to be 1 for FFA or 2 for team modes"), CC, CC);
else conoutf(_("%c3Error: %c5mode needs to be 1 for FFA or 2 for team modes"), CC, CC);
}
COMMAND(setbottimeout, ARG_2INT);
@@ -1465,7 +1465,7 @@ void scallvote(char *type, const char *arg1, const char *arg2)
if (!arg1 || !isdigit(arg1[0]) || !arg2 || strlen(arg2) <= 3 || !multiplayer(false))
{
if(!multiplayer(false))
conoutf(_("%s3%s is not available in singleplayer."), CC, t == SA_BAN ? "Ban" : "Kick");
conoutf(_("%c3%s is not available in singleplayer."), CC, t == SA_BAN ? "Ban" : "Kick");
else if(arg1 && !isdigit(arg1[0])) conoutf(_("%c3invalid vote"), CC);
else conoutf(_("%c3invalid reason"), CC);
break;
+1 -1
View File
@@ -1286,7 +1286,7 @@ void parsemessages(int cn, playerent *d, ucharbuf &p)
int cn = getint(p);
playerent *pl = cn == getclientnum() ? player1 : getclient(cn);
int ip = getint(p);
if(m_teammode) conoutf(_("%s0INFO: %s5%s has %d teamkills."), CC, CC, pl->name, pl->tks);
if(m_teammode) conoutf(_("%c0INFO: %c5%s has %d teamkills."), CC, CC, pl->name, pl->tks);
if((ip>>24&0xFF) > 0 || player1->clientrole==CR_ADMIN)
conoutf("WHOIS %2d: %-16s\t%d.%d.%d.%d", cn, pl ? colorname(pl) : "", ip&0xFF, ip>>8&0xFF, ip>>16&0xFF, ip>>24&0xFF); // full IP
else conoutf("WHOIS client %d:\n\f5name\t%s\n\f5IP\t%d.%d.%d.x", cn, pl ? colorname(pl) : "", ip&0xFF, ip>>8&0xFF, ip>>16&0xFF); // censored IP