From: Mario Date: Mon, 6 Mar 2017 07:48:03 +0000 (+1000) Subject: Check if player is independent instead of for the CTS gamemode when setting the enemy... X-Git-Tag: xonotic-v0.8.5~2782^2~3 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=76bc954e7565f32a6e2ec4dacbc870b9b23f5dd6;p=xonotic%2Fxonotic-data.pk3dir.git Check if player is independent instead of for the CTS gamemode when setting the enemy count for re-spawn delay --- 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;