]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
remove freezetag and CA from instant action
authorRudolf Polzer <divVerent@xonotic.org>
Fri, 2 Sep 2011 10:10:12 +0000 (12:10 +0200)
committerRudolf Polzer <divVerent@xonotic.org>
Fri, 2 Sep 2011 10:10:12 +0000 (12:10 +0200)
qcsrc/menu/xonotic/dialog_singleplayer.c

index 7364e24524b5523f3e2f3d558340f46f900a056e..aff39ec174ec9ff7405080b3e6ddf0f6e374064a 100644 (file)
@@ -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
                }
        }