]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Check if player is independent instead of for the CTS gamemode when setting the enemy...
authorMario <mario@smbclan.net>
Mon, 6 Mar 2017 07:48:03 +0000 (17:48 +1000)
committerMario <mario@smbclan.net>
Mon, 6 Mar 2017 07:48:03 +0000 (17:48 +1000)
qcsrc/server/player.qc

index 067ed02e938064cdd78d354372d4d3873515680f..84694401f2081d103ea0fcad2c52799d7a5323c0 100644 (file)
@@ -253,7 +253,7 @@ void calculate_player_respawn_time(entity this)
                ));
                if (sdelay_small_count == 0)
                {
-                       if (g_cts)
+                       if (IS_INDEPENDENT_PLAYER(this))
                        {
                                // Players play independently. No point in requiring enemies.
                                sdelay_small_count = 1;
@@ -266,7 +266,7 @@ void calculate_player_respawn_time(entity this)
                }
                if (sdelay_large_count == 0)
                {
-                       if (g_cts)
+                       if (IS_INDEPENDENT_PLAYER(this))
                        {
                                // Players play independently. No point in requiring enemies.
                                sdelay_large_count = 1;