#include "dialog_singleplayer.qh"
-#include <common/mapinfo.qh>
+#include <common/gamemodes/_mod.qh>
#include "bigbutton.qh"
#include "radiobutton.qh"
#include "textlabel.qh"
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