disallow map votes without map name

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@3575 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
ac_stef
2008-11-17 01:24:48 +00:00
parent f4973ebe78
commit 6c83e4af80
+1 -1
View File
@@ -32,7 +32,7 @@ struct mapaction : serveraction
resetmap(map, mode);
}
}
bool isvalid() { return serveraction::isvalid() && mode != GMODE_DEMO; }
bool isvalid() { return serveraction::isvalid() && mode != GMODE_DEMO && strlen(map); }
bool isdisabled() { return configsets.length() && curcfgset >= 0 && curcfgset < configsets.length() && !configsets[curcfgset].vote; }
mapaction(char *map, int mode) : map(map), mode(mode)
{