diff options
| author | Magnus Auvinen <magnus.auvinen@gmail.com> | 2007-12-09 12:40:34 +0000 |
|---|---|---|
| committer | Magnus Auvinen <magnus.auvinen@gmail.com> | 2007-12-09 12:40:34 +0000 |
| commit | 15c87bb5a2da904452e8351a02f52da1108f50d9 (patch) | |
| tree | 3e51a93135e13f7604d31d7e1445508415c28018 /src/game/server/srv_common.h | |
| parent | 8a12d252b515d245a08520d1d92d63b0a1c0fc61 (diff) | |
| download | zcatch-15c87bb5a2da904452e8351a02f52da1108f50d9.tar.gz zcatch-15c87bb5a2da904452e8351a02f52da1108f50d9.zip | |
added the missing sounds
Diffstat (limited to 'src/game/server/srv_common.h')
| -rw-r--r-- | src/game/server/srv_common.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/game/server/srv_common.h b/src/game/server/srv_common.h index 70e52d5b..16c78d3f 100644 --- a/src/game/server/srv_common.h +++ b/src/game/server/srv_common.h @@ -5,6 +5,11 @@ 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; } + // class event_handler { @@ -14,14 +19,14 @@ class event_handler int types[MAX_EVENTS]; // TODO: remove some of these arrays int offsets[MAX_EVENTS]; int sizes[MAX_EVENTS]; - int targets[MAX_EVENTS]; + int client_masks[MAX_EVENTS]; char data[MAX_DATASIZE]; int current_offset; int num_events; public: event_handler(); - void *create(int type, int size, int target = -1); + void *create(int type, int size, int mask = -1); void clear(); void snap(int snapping_client); }; |