From 5e4c0d8bf0911028453e3437e920dd32593c9350 Mon Sep 17 00:00:00 2001 From: Juhu <5894800-Juhu_@users.noreply.gitlab.com> Date: Wed, 8 Feb 2023 17:58:20 +0100 Subject: [PATCH] use #define instead of const for trigger_push_velocity MAX_PUSHED constant --- qcsrc/common/mapobjects/trigger/jumppads.qh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/qcsrc/common/mapobjects/trigger/jumppads.qh b/qcsrc/common/mapobjects/trigger/jumppads.qh index 108389882..e655c08d7 100644 --- a/qcsrc/common/mapobjects/trigger/jumppads.qh +++ b/qcsrc/common/mapobjects/trigger/jumppads.qh @@ -19,7 +19,9 @@ STATIC_INIT(g_jumppads) { g_jumppads = IL_NEW(); } .bool istypefrag; .float height; -const int MAX_PUSHED = 16; // maximum amount of jump pads which are allowed to push simultaneously +// maximum amount of jump pads which are allowed to push simultaneously +#define MAX_PUSHED 16 + .entity has_pushed[MAX_PUSHED]; IntrusiveList are_pushed; STATIC_INIT(are_pushed) { are_pushed = IL_NEW(); } -- 2.39.2