From 89059db88d23602bdf51d6f9d049c4eb7fe9d308 Mon Sep 17 00:00:00 2001 From: terencehill Date: Wed, 4 May 2016 00:32:07 +0200 Subject: [PATCH] Replace autocvar_g_respawn_delay_max check with a more correct one --- qcsrc/server/cl_client.qc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcsrc/server/cl_client.qc b/qcsrc/server/cl_client.qc index c157530fa..208f53723 100644 --- a/qcsrc/server/cl_client.qc +++ b/qcsrc/server/cl_client.qc @@ -2222,7 +2222,7 @@ void PlayerPreThink () bool button_pressed = (PHYS_INPUT_BUTTON_ATCK(this) || PHYS_INPUT_BUTTON_JUMP(this) || PHYS_INPUT_BUTTON_ATCK2(this) || PHYS_INPUT_BUTTON_HOOK(this) || PHYS_INPUT_BUTTON_USE(this)); if (this.deadflag == DEAD_DYING) { - if ((this.respawn_flags & RESPAWN_FORCE) && !autocvar_g_respawn_delay_max) { + if ((this.respawn_flags & RESPAWN_FORCE) && !(this.respawn_time < this.respawn_time_max)) { this.deadflag = DEAD_RESPAWNING; } else if (!button_pressed) { this.deadflag = DEAD_DEAD; @@ -2249,7 +2249,7 @@ void PlayerPreThink () if (this.respawn_flags & RESPAWN_SILENT) STAT(RESPAWN_TIME, this) = 0; - else if ((this.respawn_flags & RESPAWN_FORCE) && autocvar_g_respawn_delay_max) + else if ((this.respawn_flags & RESPAWN_FORCE) && this.respawn_time < this.respawn_time_max) STAT(RESPAWN_TIME, this) = this.respawn_time_max; else STAT(RESPAWN_TIME, this) = this.respawn_time; -- 2.39.2