]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/mapobjects/func/door_rotating.qc
GetResourceAmount --> GetResource, SetResourceAmount --> SetResource
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / mapobjects / func / door_rotating.qc
index ebe7b2a9800134bb88eac4a1c2688b4697787cc4..9b355707b49010dea1f83257d53487da1a8d66a3 100644 (file)
@@ -58,11 +58,7 @@ void door_rotating_go_down(entity this)
        if (this.max_health)
        {
                this.takedamage = DAMAGE_YES;
-       #ifdef SVQC
-               SetResourceAmountExplicit(this, RESOURCE_HEALTH, this.max_health);
-       #elif defined(CSQC)
-               this.health = this.max_health;
-       #endif
+               SetResource(this, RES_HEALTH, this.max_health);
        }
 
        this.state = STATE_DOWN;