]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Add a TODO note on the new flag line
authorMario <mario.mario@y7mail.com>
Fri, 17 Apr 2020 12:49:37 +0000 (22:49 +1000)
committerMario <mario.mario@y7mail.com>
Fri, 17 Apr 2020 12:49:37 +0000 (22:49 +1000)
qcsrc/common/gamemodes/gamemode/ctf/sv_ctf.qc

index 5e508637d0cff0fbeb6457a6f32d7361a73bf809..9f38cd9c36252dfe596b2a62e92fc849d2462682 100644 (file)
@@ -1147,7 +1147,7 @@ METHOD(Flag, giveTo, bool(Flag this, entity flag, entity toucher))
 .float last_respawn;
 void ctf_RespawnFlag(entity flag)
 {
-       flag.watertype = CONTENT_EMPTY;
+       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..."); }