From 70449ea608e209f86cc05dfda1312a0b74442a85 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Fri, 2 Sep 2011 12:10:12 +0200 Subject: [PATCH] remove freezetag and CA from instant action --- qcsrc/menu/xonotic/dialog_singleplayer.c | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) 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 } } -- 2.39.2