mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-20 15:08:19 +00:00
don't allow team changes, emoticons or kill command when game is paused
This commit is contained in:
parent
9167fdea18
commit
1891f6ee76
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue