From 89d5b542416d3e0570c06bc5e6239603398762e4 Mon Sep 17 00:00:00 2001 From: Mario Date: Fri, 23 Jun 2017 08:22:44 +1000 Subject: [PATCH] Return if the damage text is deleted --- qcsrc/common/mutators/mutator/damagetext/cl_damagetext.qc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; -- 2.39.2