Fix last map vote

This commit is contained in:
def 2017-05-17 18:45:45 +02:00
parent a7ee59804b
commit 42f3b0d7a8

View file

@ -1282,6 +1282,7 @@ void CGameContext::OnMessage(int MsgID, CUnpacker *pUnpacker, int ClientID)
char chatmsg[512] = {0};
str_format(chatmsg, sizeof(chatmsg), "There's a %d second delay between map-votes, please wait %d seconds.", g_Config.m_SvVoteMapTimeDelay,((m_LastMapVote+(g_Config.m_SvVoteMapTimeDelay * time_freq()))/time_freq())-(time_get()/time_freq()));
SendChatTarget(ClientID, chatmsg);
m_LastMapVote = time_get();
return;
}
@ -1300,7 +1301,6 @@ void CGameContext::OnMessage(int MsgID, CUnpacker *pUnpacker, int ClientID)
str_format(aCmd, sizeof(aCmd), "%s", pOption->m_aCommand);
}
m_LastMapVote = time_get();
break;
}