]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Add a note to trigger_heal for later
authorMario <mario@smbclan.net>
Sun, 17 Jun 2018 22:34:43 +0000 (08:34 +1000)
committerMario <mario@smbclan.net>
Sun, 17 Jun 2018 22:34:43 +0000 (08:34 +1000)
qcsrc/common/mapobjects/trigger/heal.qc

index 61f27a0219184340edfeca6bd40a3f7d6ac46156..ab08a39e891cf0168bd31e2328bfab60af054f11 100644 (file)
@@ -42,7 +42,7 @@ void trigger_heal_init(entity this)
        if(!this.delay)
                this.delay = 1;
        if(!GetResourceAmount(this, RESOURCE_HEALTH))
-               SetResourceAmountExplicit(this, RESOURCE_HEALTH, 10);
+               SetResourceAmountExplicit(this, RESOURCE_HEALTH, 10); // TODO: use a special field for this, it doesn't have actual health!
        if(!this.max_health)
                this.max_health = 200; // max health topoff for field
        if(this.noise == "")