From: Juhu <5894800-Juhu_@users.noreply.gitlab.com> Date: Wed, 8 Feb 2023 23:20:08 +0000 (+0100) Subject: check if already in list before pushing entities into the trigger_push_velocity track... X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f0110262ff25a8b728ef242e22ccea407ec83b50;p=xonotic%2Fxonotic-data.pk3dir.git check if already in list before pushing entities into the trigger_push_velocity tracking list, avoids console spam --- diff --git a/qcsrc/common/mapobjects/trigger/jumppads.qc b/qcsrc/common/mapobjects/trigger/jumppads.qc index fca91832d..afbe34504 100644 --- a/qcsrc/common/mapobjects/trigger/jumppads.qc +++ b/qcsrc/common/mapobjects/trigger/jumppads.qc @@ -301,8 +301,11 @@ bool jumppad_push(entity this, entity targ, bool is_velocity_pad) { return false; // too many overlapping jump pads } - IL_PUSH(are_pushed, targ); - this.nextthink = time; + if(!IL_CONTAINS(are_pushed, targ)) + { + IL_PUSH(are_pushed, targ); + this.nextthink = time; + } } }