]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Set the teamplay cvar because DP needs it.
authorRudolf Polzer <divVerent@xonotic.org>
Mon, 3 Aug 2015 18:27:18 +0000 (20:27 +0200)
committerRudolf Polzer <divVerent@xonotic.org>
Mon, 3 Aug 2015 18:27:53 +0000 (20:27 +0200)
qcsrc/server/teamplay.qc

index 7bd44fec82401c29a41533a9b50f85b224406db1..ec6f5afc3d16fc1fe1073452f467c6bbe3389a2a 100644 (file)
@@ -41,6 +41,7 @@ void ActivateTeamplay()
 {
        serverflags |= SERVERFLAG_TEAMPLAY;
        teamplay = 1;
+       cvar_set("teamplay", "2");  // DP needs this for sending proper getstatus replies.
 }
 
 void InitGameplayMode()
@@ -57,8 +58,9 @@ void InitGameplayMode()
        world.maxs = mi_max;
 
        MapInfo_LoadMapSettings(mapname);
-       teamplay = 0;
        serverflags &= ~SERVERFLAG_TEAMPLAY;
+       teamplay = 0;
+       cvar_set("teamplay", "0");  // DP needs this for sending proper getstatus replies.
 
        if (!cvar_value_issafe(world.fog))
        {