small vote cleanup

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@3719 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2008-11-21 18:26:22 +00:00
parent d3fc0614bd
commit 3178760aea
+2 -2
View File
@@ -32,8 +32,8 @@ struct mapaction : serveraction
resetmap(map, mode);
}
}
bool isvalid() { return serveraction::isvalid() && mode != GMODE_DEMO && strlen(map); }
bool isdisabled() { return configsets.length() && curcfgset >= 0 && curcfgset < configsets.length() && !configsets[curcfgset].vote; }
bool isvalid() { return serveraction::isvalid() && mode != GMODE_DEMO && map[0]; }
bool isdisabled() { return configsets.inrange(curcfgset) && !configsets[curcfgset].vote; }
mapaction(char *map, int mode) : map(map), mode(mode)
{
area |= EE_LOCAL_SERV; // local too