From b4fd1aaca919cdf58e592eee4e6c557892dcbbc3 Mon Sep 17 00:00:00 2001 From: GreYFoXGTi Date: Mon, 29 Nov 2010 05:30:00 +0200 Subject: [PATCH] Fixed Announcement System --- src/game/server/gamecontext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/server/gamecontext.cpp b/src/game/server/gamecontext.cpp index 7c787501b..d985f8ff3 100644 --- a/src/game/server/gamecontext.cpp +++ b/src/game/server/gamecontext.cpp @@ -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)