mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
fixed so that emoticon 0 works
This commit is contained in:
parent
96e65f599a
commit
e673e607dc
|
@ -83,7 +83,7 @@ void EMOTICON::on_render()
|
|||
{
|
||||
if(!active)
|
||||
{
|
||||
if(was_active && selected_emote)
|
||||
if(was_active && selected_emote != -1)
|
||||
emote(selected_emote);
|
||||
was_active = false;
|
||||
return;
|
||||
|
|
|
@ -353,7 +353,7 @@ void mods_message(int msgtype, int client_id)
|
|||
{
|
||||
NETMSG_CL_EMOTICON *msg = (NETMSG_CL_EMOTICON *)rawmsg;
|
||||
|
||||
if(config.sv_spamprotection && p->last_emote+time_freq()*5 > time_get())
|
||||
if(config.sv_spamprotection && p->last_emote+time_freq()*3 > time_get())
|
||||
return;
|
||||
|
||||
p->last_emote = time_get();
|
||||
|
|
Loading…
Reference in a new issue