From 21e60785d8555fb228a8e3bbd600e477e5932c39 Mon Sep 17 00:00:00 2001 From: "Dr. Jaska" Date: Fri, 7 Apr 2023 16:55:26 +0000 Subject: [PATCH] Resolve "Flag respawn called twice quickly" --- qcsrc/common/gamemodes/gamemode/ctf/sv_ctf.qc | 6 ------ 1 file changed, 6 deletions(-) diff --git a/qcsrc/common/gamemodes/gamemode/ctf/sv_ctf.qc b/qcsrc/common/gamemodes/gamemode/ctf/sv_ctf.qc index f8933bcb0..826a826f4 100644 --- a/qcsrc/common/gamemodes/gamemode/ctf/sv_ctf.qc +++ b/qcsrc/common/gamemodes/gamemode/ctf/sv_ctf.qc @@ -1160,15 +1160,9 @@ METHOD(Flag, giveTo, bool(Flag this, entity flag, entity toucher)) } } -.float last_respawn; void ctf_RespawnFlag(entity flag) { flag.watertype = CONTENT_EMPTY; // TODO: it is unclear why this workaround is needed, likely many other potential breakage points!! - // check for flag respawn being called twice in a row - if(flag.last_respawn > time - 0.5) - { backtrace("flag respawn called twice quickly! please notify Samual about this..."); } - - flag.last_respawn = time; // reset the player (if there is one) if((flag.owner) && (flag.owner.flagcarried == flag)) -- 2.39.2