mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Merge #1851
1851: Fix blockZ and infectionZ r=def- a=fokkonaut I talked to coffee (creator of both mods) and he said it is okay to use zoom on the mods, also: eye emotes work there so the eye wheel is also supported. I have updated both mods to ddnet master so they have all the new stuff Co-authored-by: fokkonaut <35420825+fokkonaut@users.noreply.github.com>
This commit is contained in:
commit
898e6ca958
|
@ -49,7 +49,7 @@ bool IsDDRace(const CServerInfo *pInfo)
|
|||
bool IsBlockInfectionZ(const CServerInfo *pInfo)
|
||||
{
|
||||
return str_find_nocase(pInfo->m_aGameType, "blockZ")
|
||||
|| str_find_nocase(pInfo->m_aGameType, "infection");
|
||||
|| str_find_nocase(pInfo->m_aGameType, "infectionZ");
|
||||
}
|
||||
|
||||
bool IsBlockWorlds(const CServerInfo *pInfo)
|
||||
|
@ -60,9 +60,9 @@ bool IsBlockWorlds(const CServerInfo *pInfo)
|
|||
|
||||
bool IsDDNet(const CServerInfo *pInfo)
|
||||
{
|
||||
return (str_find_nocase(pInfo->m_aGameType, "ddracenet")
|
||||
|| str_find_nocase(pInfo->m_aGameType, "ddnet"))
|
||||
&& !IsBlockInfectionZ(pInfo);
|
||||
return str_find_nocase(pInfo->m_aGameType, "ddracenet")
|
||||
|| str_find_nocase(pInfo->m_aGameType, "ddnet")
|
||||
|| IsBlockInfectionZ(pInfo);
|
||||
}
|
||||
|
||||
// other
|
||||
|
|
Loading…
Reference in a new issue