mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
blockZ & infectionZ are 64player but not DDNet
even though their name contains DDNet fixes #1364
This commit is contained in:
parent
1b0b36c6eb
commit
5b436adff8
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue