From: havoc Date: Wed, 30 Nov 2011 06:19:30 +0000 (+0000) Subject: since motorsep put steelstorm2 after steelstorm, change the commandline X-Git-Tag: xonotic-v0.6.0~140 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a6cfd9251b65b28bb6079f10a8df0d757a65f428;p=xonotic%2Fdarkplaces.git since motorsep put steelstorm2 after steelstorm, change the commandline search order so that it picks the last one git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11582 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=40b3b1719d89c7c7262a21959347f2217305c121 --- diff --git a/common.c b/common.c index 199d106a..b5005c64 100644 --- a/common.c +++ b/common.c @@ -1482,18 +1482,12 @@ void COM_InitGameType (void) COM_ToLowerString(name, name, sizeof (name)); for (i = 1;i < (int)(sizeof (gamemode_info) / sizeof (gamemode_info[0]));i++) if (gamemode_info[i].prog_name && gamemode_info[i].prog_name[0] && strstr (name, gamemode_info[i].prog_name)) - { index = i; - break; - } // check commandline options for keywords for (i = 0;i < (int)(sizeof (gamemode_info) / sizeof (gamemode_info[0]));i++) if (COM_CheckParm (gamemode_info[i].cmdline)) - { index = i; - break; - } com_startupgamemode = gamemode_info[index].mode; com_startupgamegroup = gamemode_info[index].group;