From 9ab8de5718e3b1f5b969167c50547562e62b325a Mon Sep 17 00:00:00 2001 From: def Date: Thu, 24 Sep 2020 12:01:54 +0200 Subject: [PATCH] fix clang-format --- src/engine/shared/serverbrowser.cpp | 4 ++-- src/game/client/gameclient.cpp | 18 +++++++++--------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/engine/shared/serverbrowser.cpp b/src/engine/shared/serverbrowser.cpp index 77ddee5f6..bdf94ba83 100644 --- a/src/engine/shared/serverbrowser.cpp +++ b/src/engine/shared/serverbrowser.cpp @@ -48,8 +48,8 @@ bool IsDDRace(const CServerInfo *pInfo) bool IsBlockInfectionZ(const CServerInfo *pInfo) { - return str_find_nocase(pInfo->m_aGameType, "blockz") - || str_find_nocase(pInfo->m_aGameType, "infectionz"); + return str_find_nocase(pInfo->m_aGameType, "blockz") || + str_find_nocase(pInfo->m_aGameType, "infectionz"); } bool IsBlockWorlds(const CServerInfo *pInfo) diff --git a/src/game/client/gameclient.cpp b/src/game/client/gameclient.cpp index 7da3a494d..29f45bf21 100644 --- a/src/game/client/gameclient.cpp +++ b/src/game/client/gameclient.cpp @@ -1038,15 +1038,15 @@ static CGameInfo GetGameInfo(const CNetObj_GameInfoEx *pInfoEx, int InfoExSize, } else { - Race = Flags&GAMEINFOFLAG_GAMETYPE_RACE; - FastCap = Flags&GAMEINFOFLAG_GAMETYPE_FASTCAP; - FNG = Flags&GAMEINFOFLAG_GAMETYPE_FNG; - DDRace = Flags&GAMEINFOFLAG_GAMETYPE_DDRACE; - DDNet = Flags&GAMEINFOFLAG_GAMETYPE_DDNET; - BlockWorlds = Flags&GAMEINFOFLAG_GAMETYPE_BLOCK_WORLDS; - Vanilla = Flags&GAMEINFOFLAG_GAMETYPE_VANILLA; - Plus = Flags&GAMEINFOFLAG_GAMETYPE_PLUS; - City = Flags2&GAMEINFOFLAG2_GAMETYPE_CITY; + Race = Flags & GAMEINFOFLAG_GAMETYPE_RACE; + FastCap = Flags & GAMEINFOFLAG_GAMETYPE_FASTCAP; + FNG = Flags & GAMEINFOFLAG_GAMETYPE_FNG; + DDRace = Flags & GAMEINFOFLAG_GAMETYPE_DDRACE; + DDNet = Flags & GAMEINFOFLAG_GAMETYPE_DDNET; + BlockWorlds = Flags & GAMEINFOFLAG_GAMETYPE_BLOCK_WORLDS; + Vanilla = Flags & GAMEINFOFLAG_GAMETYPE_VANILLA; + Plus = Flags & GAMEINFOFLAG_GAMETYPE_PLUS; + City = Flags2 & GAMEINFOFLAG2_GAMETYPE_CITY; // Ensure invariants upheld by the server info parsing business. DDRace = DDRace || DDNet;