From: Mario Date: Thu, 22 Jun 2017 22:22:44 +0000 (+1000) Subject: Return if the damage text is deleted X-Git-Tag: xonotic-v0.8.5~2710 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=89d5b542416d3e0570c06bc5e6239603398762e4;p=xonotic%2Fxonotic-data.pk3dir.git Return if the damage text is deleted --- diff --git a/qcsrc/common/mutators/mutator/damagetext/cl_damagetext.qc b/qcsrc/common/mutators/mutator/damagetext/cl_damagetext.qc index daf538cb3..1eb739633 100644 --- a/qcsrc/common/mutators/mutator/damagetext/cl_damagetext.qc +++ b/qcsrc/common/mutators/mutator/damagetext/cl_damagetext.qc @@ -49,7 +49,11 @@ CLASS(DamageText, Object) this.time_prev = time; setorigin(this, this.origin + dt * this.velocity); this.alpha -= dt * this.fade_rate; - if (this.alpha < 0) delete(this); + if (this.alpha < 0) + { + delete(this); + return; + } vector pos = project_3d_to_2d(this.origin) + autocvar_cl_damagetext_offset; if (pos.z >= 0 && this.m_size > 0) { pos.z = 0;