]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Merge branch 'slava/pr-fix-lava-bug' into 'master'
authorMario <mario.mario@y7mail.com>
Fri, 17 Apr 2020 12:46:55 +0000 (12:46 +0000)
committerMario <mario.mario@y7mail.com>
Fri, 17 Apr 2020 12:46:55 +0000 (12:46 +0000)
Fix bug with lava and flag

See merge request xonotic/xonotic-data.pk3dir!792

qcsrc/common/gamemodes/gamemode/ctf/sv_ctf.qc

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