fixed invalid mode str

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2221 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
driAn
2008-07-27 14:07:35 +00:00
parent f97dde4f6c
commit ccb6787036
+14 -1
View File
@@ -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)
{