Browse Source

Use bitshifts for chat flags for readability

nosoop 1 year ago
parent
commit
d961035484
1 changed files with 5 additions and 5 deletions
  1. 5 5
      scripting/simple-chatprocessor.sp

+ 5 - 5
scripting/simple-chatprocessor.sp

@@ -23,11 +23,11 @@ public Plugin myinfo = {
 
 #define PACKED_TOKEN_DELIMITER ":"
 
-#define CHATFLAGS_INVALID		0b0000
-#define CHATFLAGS_ALL			0b0001
-#define CHATFLAGS_TEAM			0b0010
-#define CHATFLAGS_SPEC			0b0100
-#define CHATFLAGS_DEAD			0b1000
+#define CHATFLAGS_INVALID    (0)
+#define CHATFLAGS_ALL        (1 << 0)
+#define CHATFLAGS_TEAM       (1 << 1)
+#define CHATFLAGS_SPEC       (1 << 2)
+#define CHATFLAGS_DEAD       (1 << 3)
 
 public APLRes AskPluginLoad2(Handle hPluginSelf, bool late, char[] error, int maxlen) {
 	MarkNativeAsOptional("GetUserMessageType");