]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/mutators/gamemode_assault.qh
Turn #define'd constants into actual constants
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / mutators / gamemode_assault.qh
index 9aecf87f29824919cefe61c6f6cb79ca6d4f4a68..00b8e98a567c88bc704be85693e77caf3655f71a 100644 (file)
@@ -3,9 +3,9 @@
 .entity assault_sprite;
 
 // legacy bot defs
-#define HAVOCBOT_AST_ROLE_NONE                 0
-#define HAVOCBOT_AST_ROLE_DEFENSE      2
-#define HAVOCBOT_AST_ROLE_OFFENSE      4
+const float HAVOCBOT_AST_ROLE_NONE = 0;
+const float HAVOCBOT_AST_ROLE_DEFENSE = 2;
+const float HAVOCBOT_AST_ROLE_OFFENSE = 4;
 
 .float havocbot_role_flags;
 .float havocbot_attack_time;
@@ -23,8 +23,8 @@ void(float ratingscale, vector org, float sradius) havocbot_goalrating_items;
 void(float ratingscale, vector org, float sradius) havocbot_goalrating_enemyplayers;
 
 // scoreboard stuff
-#define ST_ASSAULT_OBJECTIVES 1
-#define SP_ASSAULT_OBJECTIVES 4
+const float ST_ASSAULT_OBJECTIVES = 1;
+const float SP_ASSAULT_OBJECTIVES = 4;
 
 // predefined spawnfuncs
 void spawnfunc_func_breakable();