Fix trigger_swamp timer using the wrong field
authorMario <mario.mario@y7mail.com>
Mon, 18 May 2020 10:30:39 +0000 (20:30 +1000)
committerMario <mario.mario@y7mail.com>
Mon, 18 May 2020 10:30:53 +0000 (20:30 +1000)
qcsrc/common/mapobjects/trigger/swamp.qc

index f7d9df2..2794082 100644 (file)
@@ -33,7 +33,7 @@ void swampslug_think(entity this)
        this.swamp_lifetime -= 1;
 
        //Slug dead? then remove curses.
-       if(GetResource(this, RES_HEALTH) <= 0)
+       if(this.swamp_lifetime <= 0)
        {
                if(this.owner.swampslug == this)
                {