mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Fix non-random announcements (thanks noby)
This commit is contained in:
parent
f2d9c401f7
commit
4fe6dc51f7
|
@ -2784,7 +2784,7 @@ const char *CServer::GetAnnouncementLine(char const *pFileName)
|
|||
}
|
||||
else if(!g_Config.m_SvAnnouncementRandom)
|
||||
{
|
||||
if(m_AnnouncementLastLine >= v.size())
|
||||
if(++m_AnnouncementLastLine >= v.size())
|
||||
m_AnnouncementLastLine %= v.size();
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue