]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix #2579 "Persistent devastator arena after Level 25" when starting a map with the...
authorterencehill <piuntn@gmail.com>
Fri, 30 Apr 2021 18:12:47 +0000 (20:12 +0200)
committerterencehill <piuntn@gmail.com>
Fri, 30 Apr 2021 18:12:47 +0000 (20:12 +0200)
qcsrc/menu/xonotic/dialog_singleplayer.qc

index 717fe524bbe98aa3f33376dfe3b05d16f60285c0..c490b699c2e0225e3b5492cf429d45cccdee9bf9 100644 (file)
@@ -87,6 +87,12 @@ void InstantAction_LoadMap(entity btn, entity dummy)
                s = MapInfo_BSPName_ByID(m);
        }
        while(!fexists(sprintf("maps/%s.waypoints", s)));
+
+       // these commands are also executed when starting a map from Multiplayer / Create
+       // in the menu_loadmap_prepare alias
+       localcmd("disconnect\n");
+       localcmd("g_campaign 0\n");
+
        MapInfo_LoadMap(s, 1);
 
        // configure bots