]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Allow setting no delay on trigger_heal
authorMario <mario@smbclan.net>
Thu, 1 Feb 2018 17:38:01 +0000 (03:38 +1000)
committerMario <mario@smbclan.net>
Thu, 1 Feb 2018 17:38:01 +0000 (03:38 +1000)
qcsrc/common/triggers/trigger/heal.qc

index 61a65d8b596ca3f12e735978659d5b8cc08c40c2..f2345e8f59397aba32c0802dd24e6b218a3c255a 100644 (file)
@@ -16,7 +16,8 @@ void trigger_heal_touch(entity this, entity toucher)
                        bool is_trigger = !boolean(!this.nottargeted && this.targetname != "");
                        if(is_trigger)
                                EXACTTRIGGER_TOUCH(this, toucher);
-                       toucher.triggerhealtime = time + this.delay;
+                       if(this.delay > 0)
+                               toucher.triggerhealtime = time + this.delay;
 
                        bool playthesound = (this.spawnflags & 4);
                        if (toucher.health < this.max_health)