From: Juhu <5894800-Juhu_@users.noreply.gitlab.com> Date: Wed, 8 Feb 2023 16:58:20 +0000 (+0100) Subject: use #define instead of const for trigger_push_velocity MAX_PUSHED constant X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=5e4c0d8bf0911028453e3437e920dd32593c9350;p=xonotic%2Fxonotic-data.pk3dir.git use #define instead of const for trigger_push_velocity MAX_PUSHED constant --- 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(); }