]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
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 f7d9df2900c4c8c40403ede1f45bc71ea3fcf326..27940828e33ace20e2e8a14879a7c800ee516ed2 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)
                {