X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fcommon%2Fturrets%2Fturret%2Fewheel.qc;h=288ba29366c841186402828cf81de56c7f09d531;hp=c0a0b177ee2d179afb99aeb774203521daf5eeeb;hb=3fc2359b7933352424af07db8f84cbb9342e934f;hpb=2e05a1d8421ee2cbb604582d644133500aae2450 diff --git a/qcsrc/common/turrets/turret/ewheel.qc b/qcsrc/common/turrets/turret/ewheel.qc index c0a0b177ee..288ba29366 100644 --- a/qcsrc/common/turrets/turret/ewheel.qc +++ b/qcsrc/common/turrets/turret/ewheel.qc @@ -228,7 +228,7 @@ void ewheel_draw(entity this) setorigin(this, this.origin + this.velocity * dt); this.tur_head.angles += dt * this.tur_head.avelocity; - if(GetResourceAmount(this, RESOURCE_HEALTH) < 127) + if(GetResourceAmount(this, RES_HEALTH) < 127) if(random() < 0.05) te_spark(this.origin + '0 0 40', randomvec() * 256 + '0 0 256', 16); }