From: Rudolf Polzer Date: Fri, 2 Sep 2011 10:10:12 +0000 (+0200) Subject: remove freezetag and CA from instant action X-Git-Tag: xonotic-v0.5.0~8 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=70449ea608e209f86cc05dfda1312a0b74442a85;p=xonotic%2Fxonotic-data.pk3dir.git remove freezetag and CA from instant action --- diff --git a/qcsrc/menu/xonotic/dialog_singleplayer.c b/qcsrc/menu/xonotic/dialog_singleplayer.c index 7364e2452..aff39ec17 100644 --- a/qcsrc/menu/xonotic/dialog_singleplayer.c +++ b/qcsrc/menu/xonotic/dialog_singleplayer.c @@ -51,7 +51,7 @@ void InstantAction_LoadMap(entity btn, entity dummy) else // somehow distribute the remaining 5% { float r; - r = floor(random() * 5); + r = floor(random() * 4); switch(r) { default: @@ -63,35 +63,24 @@ void InstantAction_LoadMap(entity btn, entity dummy) cvar_set("timelimit_override", "-1"); break; case 1: - MapInfo_SwitchGameType(MAPINFO_TYPE_CA); - pmin = 2; - pmax = 8; - pstep = 2; - break; - case 2: MapInfo_SwitchGameType(MAPINFO_TYPE_DOMINATION); pmin = 2; pmax = 8; pstep = 2; break; - case 3: + case 2: MapInfo_SwitchGameType(MAPINFO_TYPE_ONSLAUGHT); pmin = 6; pmax = 16; pstep = 2; break; - case 4: - MapInfo_SwitchGameType(MAPINFO_TYPE_FREEZETAG); - pmin = 4; - pmax = 10; - pstep = 2; - break; - case 5: + case 3: MapInfo_SwitchGameType(MAPINFO_TYPE_ASSAULT); pmin = 4; pmax = 16; pstep = 2; break; + // CA, Freezetag: bot AI does not work, add them once it does } }