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