From 12020c409b590c01312ceee4a44f02045c9ad0c0 Mon Sep 17 00:00:00 2001 From: Bukz Date: Mon, 8 Aug 2011 20:01:24 +0000 Subject: [PATCH] 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 --- source/src/clientgame.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/source/src/clientgame.cpp b/source/src/clientgame.cpp index 541655af..cd49d18f 100644 --- a/source/src/clientgame.cpp +++ b/source/src/clientgame.cpp @@ -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; } }