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

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