blockZ & infectionZ are 64player but not DDNet

even though their name contains DDNet
fixes #1364
This commit is contained in:
def 2018-10-29 21:33:33 +01:00
parent 1b0b36c6eb
commit 5b436adff8

View file

@ -46,10 +46,17 @@ bool IsDDRace(const CServerInfo *pInfo)
|| IsDDNet(pInfo);
}
bool IsBlockInfectionZ(const CServerInfo *pInfo)
{
return str_find_nocase(pInfo->m_aGameType, "blockZ")
|| str_find_nocase(pInfo->m_aGameType, "infectionZ");
}
bool IsDDNet(const CServerInfo *pInfo)
{
return str_find_nocase(pInfo->m_aGameType, "ddracenet")
|| str_find_nocase(pInfo->m_aGameType, "ddnet");
return (str_find_nocase(pInfo->m_aGameType, "ddracenet")
|| str_find_nocase(pInfo->m_aGameType, "ddnet"))
&& !IsBlockInfectionZ(pInfo);
}
bool IsBlockWorlds(const CServerInfo *pInfo)
@ -64,7 +71,8 @@ bool Is64Player(const CServerInfo *pInfo)
{
return str_find(pInfo->m_aGameType, "64")
|| str_find(pInfo->m_aName, "64")
|| IsDDNet(pInfo);
|| IsDDNet(pInfo)
|| IsBlockInfectionZ(pInfo);
}
bool IsPlus(const CServerInfo *pInfo)