mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Fix last map vote
This commit is contained in:
parent
a7ee59804b
commit
42f3b0d7a8
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue