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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user