fixed so that emoticon 0 works

This commit is contained in:
Magnus Auvinen 2009-01-11 14:32:23 +00:00
parent 96e65f599a
commit e673e607dc
2 changed files with 2 additions and 2 deletions

View file

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

View file

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