bot survival tweak/menus fix

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6810 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Bukz
2012-05-28 22:02:43 +00:00
parent 4aaf1fc74f
commit e7a233c610
3 changed files with 4 additions and 1 deletions
+2
View File
@@ -113,6 +113,8 @@ loop d $NUM_WEAPONS [ const (at $WEAPONS $d) $d ]
loop r $NUM_MODES [ const (at $MODES $r) (addpunct (concat votemap $r (addpunct arg1 3)) 2) ]
loop f $NUM_MODES [ const (toupper (at $MODES $f)) $f ]
const MAX_BOT_MATCH_LENGTH 60
// Mode/map-setting aliases.
const votemap [ mode $arg1; map $arg2 ]
+1
View File
@@ -52,6 +52,7 @@ const survival [
if (strstr $defaultmaps (curmap 1)) [ survMap = (findlist $defaultmaps (curmap 1)) ]
setOfcZones; checkzone
]
setbottimeout 2 $MAX_BOT_MATCH_LENGTH
votemap 7 $arg1
]
+1 -1
View File
@@ -1197,7 +1197,7 @@ void gmenu::conprintmenu()
void gmenu::init()
{
if(dirlist && dirlist->ext != NULL)
if(dirlist && ((dirlist->dir != NULL) && (dirlist->ext != NULL)))
{
items.deletecontents();
vector<char *> files;