mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 14:38:18 +00:00
fix clang-format
This commit is contained in:
parent
00b66362c3
commit
9ab8de5718
|
@ -48,8 +48,8 @@ bool IsDDRace(const CServerInfo *pInfo)
|
||||||
|
|
||||||
bool IsBlockInfectionZ(const CServerInfo *pInfo)
|
bool IsBlockInfectionZ(const CServerInfo *pInfo)
|
||||||
{
|
{
|
||||||
return str_find_nocase(pInfo->m_aGameType, "blockz")
|
return str_find_nocase(pInfo->m_aGameType, "blockz") ||
|
||||||
|| str_find_nocase(pInfo->m_aGameType, "infectionz");
|
str_find_nocase(pInfo->m_aGameType, "infectionz");
|
||||||
}
|
}
|
||||||
|
|
||||||
bool IsBlockWorlds(const CServerInfo *pInfo)
|
bool IsBlockWorlds(const CServerInfo *pInfo)
|
||||||
|
|
|
@ -1038,15 +1038,15 @@ static CGameInfo GetGameInfo(const CNetObj_GameInfoEx *pInfoEx, int InfoExSize,
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Race = Flags&GAMEINFOFLAG_GAMETYPE_RACE;
|
Race = Flags & GAMEINFOFLAG_GAMETYPE_RACE;
|
||||||
FastCap = Flags&GAMEINFOFLAG_GAMETYPE_FASTCAP;
|
FastCap = Flags & GAMEINFOFLAG_GAMETYPE_FASTCAP;
|
||||||
FNG = Flags&GAMEINFOFLAG_GAMETYPE_FNG;
|
FNG = Flags & GAMEINFOFLAG_GAMETYPE_FNG;
|
||||||
DDRace = Flags&GAMEINFOFLAG_GAMETYPE_DDRACE;
|
DDRace = Flags & GAMEINFOFLAG_GAMETYPE_DDRACE;
|
||||||
DDNet = Flags&GAMEINFOFLAG_GAMETYPE_DDNET;
|
DDNet = Flags & GAMEINFOFLAG_GAMETYPE_DDNET;
|
||||||
BlockWorlds = Flags&GAMEINFOFLAG_GAMETYPE_BLOCK_WORLDS;
|
BlockWorlds = Flags & GAMEINFOFLAG_GAMETYPE_BLOCK_WORLDS;
|
||||||
Vanilla = Flags&GAMEINFOFLAG_GAMETYPE_VANILLA;
|
Vanilla = Flags & GAMEINFOFLAG_GAMETYPE_VANILLA;
|
||||||
Plus = Flags&GAMEINFOFLAG_GAMETYPE_PLUS;
|
Plus = Flags & GAMEINFOFLAG_GAMETYPE_PLUS;
|
||||||
City = Flags2&GAMEINFOFLAG2_GAMETYPE_CITY;
|
City = Flags2 & GAMEINFOFLAG2_GAMETYPE_CITY;
|
||||||
|
|
||||||
// Ensure invariants upheld by the server info parsing business.
|
// Ensure invariants upheld by the server info parsing business.
|
||||||
DDRace = DDRace || DDNet;
|
DDRace = DDRace || DDNet;
|
||||||
|
|
Loading…
Reference in a new issue