kick & ban in singleplayer bug fix, updated win32 bins

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6564 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Bukz
2011-08-08 20:01:24 +00:00
parent 6b0515e0bb
commit 12020c409b
+6 -2
View File
@@ -1484,9 +1484,13 @@ void scallvote(char *type, const char *arg1, const char *arg2)
case SA_KICK:
case SA_BAN:
{
if ( !arg2 || strlen(arg2) <= 3 )
if ( !arg2 || strlen(arg2) <= 3 || !multiplayer(false) )
{
conoutf(_("%c3invalid reason"), CC);
if(!multiplayer(false))
//conoutf(_("\f3%s is not available in singleplayer.", t == SA_BAN ? "ban" : "kick"));
// warning C4002: too many actual parameters for macro '_' ???
conoutf("\f3%s is not available in singleplayer.", t == SA_BAN ? "Ban" : "Kick");
else conoutf(_("%c3invalid reason"), CC);
break;
}
}