about summary refs log tree commit diff
path: root/src/game/server/srv_common.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/server/srv_common.h')
-rw-r--r--src/game/server/srv_common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/server/srv_common.h b/src/game/server/srv_common.h
index 25af52b0..82375d25 100644
--- a/src/game/server/srv_common.h
+++ b/src/game/server/srv_common.h
@@ -8,7 +8,7 @@ void create_sound_global(int sound, int target=-1);
 inline int cmask_all() { return -1; }
 inline int cmask_one(int cid) { return 1<<cid; }
 inline int cmask_all_except_one(int cid) { return 0x7fffffff^cmask_one(cid); }
-inline bool cmask_is_set(int mask, int cid) { return mask&cmask_one(cid) != 0; }
+inline bool cmask_is_set(int mask, int cid) { return (mask&cmask_one(cid)) != 0; }
 
 //
 class event_handler