]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Resolve "Flag respawn called twice quickly"
authorDr. Jaska <drjaska83@gmail.com>
Fri, 7 Apr 2023 16:55:26 +0000 (16:55 +0000)
committerbones_was_here <bones_was_here@xonotic.au>
Fri, 7 Apr 2023 16:55:26 +0000 (16:55 +0000)
qcsrc/common/gamemodes/gamemode/ctf/sv_ctf.qc

index f8933bcb06afd22034aa155a1461af68fff2aa44..826a826f46876ffa000660dcb66b9a27fb1c7975 100644 (file)
@@ -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))