]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/bot/havocbot/role_onslaught.qc
Declare more ints as ints
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / bot / havocbot / role_onslaught.qc
index 56745fbab84c9df411e30317f235d0562d3d2503..55da31783be7fa342b89976d337343fd8acd1682 100644 (file)
@@ -1,9 +1,9 @@
-const float HAVOCBOT_ONS_ROLE_NONE             = 0;
-const float HAVOCBOT_ONS_ROLE_DEFENSE  = 2;
-const float HAVOCBOT_ONS_ROLE_ASSISTANT = 4;
-const float HAVOCBOT_ONS_ROLE_OFFENSE  = 8;
+const int HAVOCBOT_ONS_ROLE_NONE               = 0;
+const int HAVOCBOT_ONS_ROLE_DEFENSE    = 2;
+const int HAVOCBOT_ONS_ROLE_ASSISTANT  = 4;
+const int HAVOCBOT_ONS_ROLE_OFFENSE    = 8;
 
-.float havocbot_role_flags;
+.int havocbot_role_flags;
 .float havocbot_attack_time;
 
 .void() havocbot_role;
@@ -97,7 +97,7 @@ void havocbot_role_ons_setrole(entity bot, float role)
        dprint("\n");
 }
 
-float havocbot_ons_teamcount(entity bot, float role)
+float havocbot_ons_teamcount(entity bot, int role)
 {
        float c = 0;
        entity head;