From: terencehill Date: Tue, 8 Aug 2023 16:36:27 +0000 (+0200) Subject: Revert "Don't enable status effects that would end one frame after their creation... X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=165c18e7834b28f7020309fba9e8d8b2947a45d8;p=xonotic%2Fxonotic-data.pk3dir.git 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. --- 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); }