]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/menu/xonotic/keybinder.c
Turn #define'd constants into actual constants
[xonotic/xonotic-data.pk3dir.git] / qcsrc / menu / xonotic / keybinder.c
index 60c44ddaf2436e8f6214b96c4641f0b54c46e3dc..6f3e56f72c8964d6f52aa6c62ed728eb1d5edc46 100644 (file)
@@ -34,8 +34,8 @@ void KeyBinder_Bind_Edit(entity btn, entity me);
 
 const string KEY_NOT_BOUND_CMD = "// not bound";
 
-#define MAX_KEYS_PER_FUNCTION 2
-#define MAX_KEYBINDS 256
+const float MAX_KEYS_PER_FUNCTION = 2;
+const float MAX_KEYBINDS = 256;
 string Xonotic_KeyBinds_Functions[MAX_KEYBINDS];
 string Xonotic_KeyBinds_Descriptions[MAX_KEYBINDS];
 var float Xonotic_KeyBinds_Count = -1;