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