From: Dr. Jaska Date: Fri, 7 Apr 2023 16:55:26 +0000 (+0000) Subject: Resolve "Flag respawn called twice quickly" X-Git-Tag: xonotic-v0.8.6~135^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=21e60785d8555fb228a8e3bbd600e477e5932c39;p=xonotic%2Fxonotic-data.pk3dir.git Resolve "Flag respawn called twice quickly" --- 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))