X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fmapobjects%2Ffunc%2Fdoor_rotating.qc;h=29fd1d05f95fd611bb5cb78a0b286045852aa545;hb=3a9017e6791a5dd7de4ba669c3b1ff08d4347a5b;hp=41fd05e574af53295a71c6b105c3a76f3ac78e52;hpb=e51ce3d45d2852ca793118fc73da9c25f789101f;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/mapobjects/func/door_rotating.qc b/qcsrc/common/mapobjects/func/door_rotating.qc index 41fd05e57..29fd1d05f 100644 --- a/qcsrc/common/mapobjects/func/door_rotating.qc +++ b/qcsrc/common/mapobjects/func/door_rotating.qc @@ -58,7 +58,7 @@ void door_rotating_go_down(entity this) if (this.max_health) { this.takedamage = DAMAGE_YES; - this.health = this.max_health; + SetResourceExplicit(this, RES_HEALTH, this.max_health); } this.state = STATE_DOWN;