From 165c18e7834b28f7020309fba9e8d8b2947a45d8 Mon Sep 17 00:00:00 2001 From: terencehill Date: Tue, 8 Aug 2023 18:36:27 +0200 Subject: [PATCH] Revert "Don't enable status effects that would end one frame after their creation, e.g. spawnshield if g_spawnshieldtime is 0" This reverts commit 3c645bcaa1b862088ce7a2b20ed5d1e90fdc7a3f. --- qcsrc/common/mutators/mutator/status_effects/status_effects.qc | 3 --- 1 file changed, 3 deletions(-) diff --git a/qcsrc/common/mutators/mutator/status_effects/status_effects.qc b/qcsrc/common/mutators/mutator/status_effects/status_effects.qc index 577503244..eb1ced075 100644 --- a/qcsrc/common/mutators/mutator/status_effects/status_effects.qc +++ b/qcsrc/common/mutators/mutator/status_effects/status_effects.qc @@ -27,9 +27,6 @@ float StatusEffects_gettime(StatusEffects this, entity actor) #ifdef SVQC void StatusEffects_apply(StatusEffects this, entity actor, float eff_time, int eff_flags) { - if (!actor || eff_time <= time) - return; - this.m_apply(this, actor, eff_time, eff_flags); } -- 2.39.2