From f0110262ff25a8b728ef242e22ccea407ec83b50 Mon Sep 17 00:00:00 2001 From: Juhu <5894800-Juhu_@users.noreply.gitlab.com> Date: Thu, 9 Feb 2023 00:20:08 +0100 Subject: [PATCH] check if already in list before pushing entities into the trigger_push_velocity tracking list, avoids console spam --- qcsrc/common/mapobjects/trigger/jumppads.qc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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; + } } } -- 2.39.2