don't allow team changes, emoticons or kill command when game is paused

This commit is contained in:
Alfred Eriksson 2008-11-17 16:53:25 +00:00
parent 9167fdea18
commit 1891f6ee76

View file

@ -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;