]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/bot/scripting.qc
Use the BIT macro
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / bot / scripting.qc
index c3484e1d4c47e9c4bc1dc7753630dada4104b309..76cda90d90f48dd98b796f31965f46ad4c017bdc 100644 (file)
@@ -815,17 +815,17 @@ float bot_cmd_aimtarget()
 .int bot_cmd_keys;
 
 const int BOT_CMD_KEY_NONE             = 0;
-const int BOT_CMD_KEY_FORWARD  = 1;
-const int BOT_CMD_KEY_BACKWARD         = 2;
-const int BOT_CMD_KEY_RIGHT    = 4;
-const int BOT_CMD_KEY_LEFT             = 8;
-const int BOT_CMD_KEY_JUMP             = 16;
-const int BOT_CMD_KEY_ATTACK1  = 32;
-const int BOT_CMD_KEY_ATTACK2  = 64;
-const int BOT_CMD_KEY_USE              = 128;
-const int BOT_CMD_KEY_HOOK             = 256;
-const int BOT_CMD_KEY_CROUCH   = 512;
-const int BOT_CMD_KEY_CHAT             = 1024;
+const int BOT_CMD_KEY_FORWARD  = BIT(0);
+const int BOT_CMD_KEY_BACKWARD         = BIT(1);
+const int BOT_CMD_KEY_RIGHT    = BIT(2);
+const int BOT_CMD_KEY_LEFT             = BIT(3);
+const int BOT_CMD_KEY_JUMP             = BIT(4);
+const int BOT_CMD_KEY_ATTACK1  = BIT(5);
+const int BOT_CMD_KEY_ATTACK2  = BIT(6);
+const int BOT_CMD_KEY_USE              = BIT(7);
+const int BOT_CMD_KEY_HOOK             = BIT(8);
+const int BOT_CMD_KEY_CROUCH   = BIT(9);
+const int BOT_CMD_KEY_CHAT             = BIT(10);
 
 float bot_presskeys()
 {SELFPARAM();