]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/client/hud.qh
Turn #define'd constants into actual constants
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / hud.qh
index d56caf1331e88fa48e9624f20b2cf7982c581f70..a4f9d4c769759cc19d57a2579bb4e3517197b9a0 100644 (file)
@@ -1,6 +1,6 @@
-#define HUD_PANEL_MAX 24
+const float HUD_PANEL_MAX = 24;
 entity hud_panel[HUD_PANEL_MAX];
-#define HUD_PANEL_FIRST 0
+const float HUD_PANEL_FIRST = 0;
 float HUD_PANEL_NUM;
 float HUD_PANEL_LAST;
 
@@ -338,8 +338,8 @@ panel_bg_border_str = cvar_string(strcat("hud_panel_", panel.panel_name, "_bg_bo
 HUD_Panel_GetBorder() \
 } ENDS_WITH_CURLY_BRACE
 
-#define NOTIFY_MAX_ENTRIES 10
-#define NOTIFY_ICON_MARGIN 0.02
+const float NOTIFY_MAX_ENTRIES = 10;
+const float NOTIFY_ICON_MARGIN = 0.02;
 
 float notify_index;
 float notify_count;