Merge branch 'master' into martin-t/globals
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / campaign_setup.qc
1 #include "campaign_setup.qh"
2 #if defined(CSQC)
3 #elif defined(MENUQC)
4 #elif defined(SVQC)
5     #include "campaign_common.qh"
6     #include "mapinfo.qh"
7 #endif
8
9 void CampaignSetup(int n)
10 {
11         localcmd("set g_campaign 1\n");
12         localcmd("set _campaign_name \"");
13                 localcmd(campaign_name);
14                 localcmd("\"\n");
15         localcmd("set _campaign_index ");
16                 localcmd(ftos(campaign_offset + n));
17                 localcmd("\n");
18         localcmd("disconnect\nmaxplayers 16\n");
19         MapInfo_LoadMap(campaign_mapname[n], 1);
20 }