]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Revert "Don't enable status effects that would end one frame after their creation...
authorterencehill <piuntn@gmail.com>
Tue, 8 Aug 2023 16:36:27 +0000 (18:36 +0200)
committerterencehill <piuntn@gmail.com>
Tue, 8 Aug 2023 16:36:27 +0000 (18:36 +0200)
This reverts commit 3c645bcaa1b862088ce7a2b20ed5d1e90fdc7a3f.

qcsrc/common/mutators/mutator/status_effects/status_effects.qc

index 5775032440a83c7144b73dccdb80d9ba9daa9966..eb1ced075d17c3643e5b260044c05d21f7191c33 100644 (file)
@@ -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);
 }