diff options
| author | Alfred Eriksson <somerunce@gmail.com> | 2008-11-17 16:53:25 +0000 |
|---|---|---|
| committer | Alfred Eriksson <somerunce@gmail.com> | 2008-11-17 16:53:25 +0000 |
| commit | 1891f6ee76a363be040e9d708e4a131149f5d930 (patch) | |
| tree | fe32f1882e3aecd5c5e30ad5e7aa031cece145c5 /src/game/server/hooks.cpp | |
| parent | 9167fdea18f263cbbc206305af6478b1bbaa57c0 (diff) | |
| download | zcatch-1891f6ee76a363be040e9d708e4a131149f5d930.tar.gz zcatch-1891f6ee76a363be040e9d708e4a131149f5d930.zip | |
don't allow team changes, emoticons or kill command when game is paused
Diffstat (limited to 'src/game/server/hooks.cpp')
| -rw-r--r-- | src/game/server/hooks.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game/server/hooks.cpp b/src/game/server/hooks.cpp index fa6db69d..4b581510 100644 --- a/src/game/server/hooks.cpp +++ b/src/game/server/hooks.cpp @@ -268,7 +268,7 @@ void mods_message(int msgtype, int client_id) game.send_vote_status(-1); } } - else if (msgtype == NETMSGTYPE_CL_SETTEAM) + else if (msgtype == NETMSGTYPE_CL_SETTEAM && !game.world.paused) { NETMSG_CL_SETTEAM *msg = (NETMSG_CL_SETTEAM *)rawmsg; @@ -358,7 +358,7 @@ void mods_message(int msgtype, int client_id) server_send_msg(client_id); } } - else if (msgtype == NETMSGTYPE_CL_EMOTICON) + else if (msgtype == NETMSGTYPE_CL_EMOTICON && !game.world.paused) { NETMSG_CL_EMOTICON *msg = (NETMSG_CL_EMOTICON *)rawmsg; @@ -369,7 +369,7 @@ void mods_message(int msgtype, int client_id) game.send_emoticon(client_id, msg->emoticon); } - else if (msgtype == NETMSGTYPE_CL_KILL) + else if (msgtype == NETMSGTYPE_CL_KILL && !game.world.paused) { if(p->last_kill+time_freq()*3 > time_get()) return; |