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