]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/mapobjects/trigger/swamp.qc
Fix trigger_swamp timer using the wrong field
[xonotic/xonotic-data.pk3dir.git] / 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)
                {