setbottimeout for DM/TM botmatches of your choice length of time (1-60 minutes)

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6267 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
flowtron
2011-04-17 15:50:28 +00:00
parent 259fc18ebd
commit 00a88d56e1
2 changed files with 32 additions and 1 deletions
+3 -1
View File
@@ -55,6 +55,8 @@ vector<server_entity> sents;
char *maplayout = NULL, *testlayout = NULL;
int maplayout_factor, testlayout_factor, maplayoutssize;
servermapbuffer mapbuffer;
int botmatch_dm_minremain = 10; // deathmatch
int botmatch_tm_minremain = 15; // teammode
// cmod
char *global_name;
@@ -1841,7 +1843,7 @@ void resetserver(const char *newname, int newmode, int newtime)
smode = newmode;
copystring(smapname, newname);
minremain = newtime >= 0 ? newtime : (m_teammode ? 15 : 10);
minremain = newtime >= 0 ? newtime : (m_botmode ? (m_teammode ? botmatch_tm_minremain : botmatch_dm_minremain) : (m_teammode ? 15 : 10));
gamemillis = 0;
gamelimit = minremain*60000;
arenaround = arenaroundstartmillis = 0;