]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Revert "Make sure g_campaign is always reset to 0 on disconnection (without relying...
authorterencehill <piuntn@gmail.com>
Sat, 11 Jan 2020 23:15:57 +0000 (00:15 +0100)
committerterencehill <piuntn@gmail.com>
Sat, 11 Jan 2020 23:15:57 +0000 (00:15 +0100)
This reverts commit c8534e0bb85fe93b76ad32415bb0581d4771dd9b.

qcsrc/server/campaign.qc

index ea5af043823b451f83078463b00b4d7c83742827..f0fcea6abf62def2f2d8cabf03556955cf7dbd7d 100644 (file)
@@ -129,9 +129,6 @@ void CampaignPreInit()
        cvar_set("skill", ftos(baseskill));
        cvar_set("bot_number", ftos(campaign_bots[0]));
 #else
-       // since g_campaign is already set to 1 by the menu when starting a campaign level, we first need
-       // to set it back to 0 before settemping it to 1 so it'll be correctly restored to 0 on disconnection
-       cvar_set("g_campaign", "0");
        cvar_settemp("g_campaign", "1");
        cvar_settemp("g_dm", "0");
        cvar_settemp("skill", ftos(baseskill));