mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Fixed Announcement System
This commit is contained in:
parent
94d5351108
commit
b4fd1aaca9
|
@ -579,7 +579,7 @@ void CGameContext::OnTick()
|
|||
}
|
||||
}
|
||||
|
||||
if(Server()->Tick() % Server()->TickSpeed() * 60 == g_Config.m_SvAnnouncementInterval)
|
||||
if(Server()->Tick() % (g_Config.m_SvAnnouncementInterval * Server()->TickSpeed() * 60) == 0)
|
||||
{
|
||||
char *Line = ((CServer *) Server())->GetLine(g_Config.m_SvAnnouncementFileName, m_AnnouncementLine++);
|
||||
if(Line)
|
||||
|
|
Loading…
Reference in a new issue