From 76bc954e7565f32a6e2ec4dacbc870b9b23f5dd6 Mon Sep 17 00:00:00 2001 From: Mario Date: Mon, 6 Mar 2017 17:48:03 +1000 Subject: [PATCH] Check if player is independent instead of for the CTS gamemode when setting the enemy count for re-spawn delay --- qcsrc/server/player.qc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcsrc/server/player.qc b/qcsrc/server/player.qc index 067ed02e93..84694401f2 100644 --- a/qcsrc/server/player.qc +++ b/qcsrc/server/player.qc @@ -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; -- 2.39.2