From ccb6787036e6edd2ab55414ffe41529c3595daa4 Mon Sep 17 00:00:00 2001 From: driAn Date: Sun, 27 Jul 2008 14:07:35 +0000 Subject: [PATCH] fixed invalid mode str git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2221 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/clientgame.cpp | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/source/src/clientgame.cpp b/source/src/clientgame.cpp index ff767b03..eec08b23 100644 --- a/source/src/clientgame.cpp +++ b/source/src/clientgame.cpp @@ -738,7 +738,20 @@ void callvote(int type, char *arg1, char *arg2) else conoutf("\f3invalid vote"); } -void scallvote(char *type, char *arg1, char *arg2) { if(type) callvote(atoi(type), arg1, arg2); } // fixme, ah +void scallvote(char *type, char *arg1, char *arg2) +{ + if(type) + { + int t = atoi(type); + if(t==SA_MAP) // FIXME + { + string n; + itoa(n, nextmode); + callvote(t, arg1, n); + } + else callvote(t, arg1, arg2); + } +} void vote(int v) {