From: Mario Date: Mon, 18 May 2020 10:30:39 +0000 (+1000) Subject: Fix trigger_swamp timer using the wrong field X-Git-Tag: xonotic-v0.8.5~1067 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=98ca2b115036d87b8826a13d0f402a96301b7e18;p=xonotic%2Fxonotic-data.pk3dir.git Fix trigger_swamp timer using the wrong field --- diff --git a/qcsrc/common/mapobjects/trigger/swamp.qc b/qcsrc/common/mapobjects/trigger/swamp.qc index f7d9df290..27940828e 100644 --- a/qcsrc/common/mapobjects/trigger/swamp.qc +++ b/qcsrc/common/mapobjects/trigger/swamp.qc @@ -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) {