mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
fixed possible server stressing
This commit is contained in:
parent
f80c46e24d
commit
08b6ffd52c
|
@ -776,6 +776,7 @@ void CGameContext::OnMessage(int MsgID, CUnpacker *pUnpacker, int ClientID)
|
|||
|
||||
if(pPlayer->m_TeamChangeTick > Server()->Tick())
|
||||
{
|
||||
pPlayer->m_LastSetTeam = Server()->Tick();
|
||||
int TimeLeft = (pPlayer->m_TeamChangeTick - Server()->Tick())/Server()->TickSpeed();
|
||||
char aBuf[128];
|
||||
str_format(aBuf, sizeof(aBuf), "Time to wait before changing team: %02d:%02d", TimeLeft/60, TimeLeft%60);
|
||||
|
|
Loading…
Reference in a new issue