]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
use #define instead of const for trigger_push_velocity spawnflags
authorJuhu <5894800-Juhu_@users.noreply.gitlab.com>
Wed, 8 Feb 2023 16:20:26 +0000 (17:20 +0100)
committerJuhu <5894800-Juhu_@users.noreply.gitlab.com>
Wed, 8 Feb 2023 16:20:26 +0000 (17:20 +0100)
qcsrc/common/mapobjects/trigger/jumppads.qh

index 9dad3c6ea084c594fa16fddbfa08b5ad69212d9b..1083898829ce62e018e2696a9a609d0affce440f 100644 (file)
@@ -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(); }