From e93140abee225f1d40c1a546e6d0c29152f7d421 Mon Sep 17 00:00:00 2001 From: Juhu <5894800-Juhu_@users.noreply.gitlab.com> Date: Wed, 8 Feb 2023 17:20:26 +0100 Subject: [PATCH] use #define instead of const for trigger_push_velocity spawnflags --- qcsrc/common/mapobjects/trigger/jumppads.qh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/qcsrc/common/mapobjects/trigger/jumppads.qh b/qcsrc/common/mapobjects/trigger/jumppads.qh index 9dad3c6ea..108389882 100644 --- a/qcsrc/common/mapobjects/trigger/jumppads.qh +++ b/qcsrc/common/mapobjects/trigger/jumppads.qh @@ -4,13 +4,13 @@ const int PUSH_ONCE = BIT(0); // legacy, deactivate with relay instead const int PUSH_SILENT = BIT(1); // not used? -const int PUSH_VELOCITY_PLAYERDIR_XY = BIT(0); -const int PUSH_VELOCITY_ADD_XY = BIT(1); -const int PUSH_VELOCITY_PLAYERDIR_Z = BIT(2); -const int PUSH_VELOCITY_ADD_Z = BIT(3); -const int PUSH_VELOCITY_BIDIRECTIONAL_XY = BIT(4); -const int PUSH_VELOCITY_BIDIRECTIONAL_Z = BIT(5); -const int PUSH_VELOCITY_CLAMP_NEGATIVE_ADDS = BIT(6); +#define PUSH_VELOCITY_PLAYERDIR_XY BIT(0) +#define PUSH_VELOCITY_ADD_XY BIT(1) +#define PUSH_VELOCITY_PLAYERDIR_Z BIT(2) +#define PUSH_VELOCITY_ADD_Z BIT(3) +#define PUSH_VELOCITY_BIDIRECTIONAL_XY BIT(4) +#define PUSH_VELOCITY_BIDIRECTIONAL_Z BIT(5) +#define PUSH_VELOCITY_CLAMP_NEGATIVE_ADDS BIT(6) IntrusiveList g_jumppads; STATIC_INIT(g_jumppads) { g_jumppads = IL_NEW(); } -- 2.39.2