From b1e7797b19ca15bd644a98492fc75f0bd73ae76d Mon Sep 17 00:00:00 2001 From: oy Date: Fri, 19 Aug 2011 00:12:30 +0200 Subject: fixed compiling with mingw --- src/base/detect.h | 2 +- src/game/client/components/menus_ingame.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/base/detect.h b/src/base/detect.h index f9ca5779..f802b119 100644 --- a/src/base/detect.h +++ b/src/base/detect.h @@ -77,7 +77,7 @@ /* use gcc endianness definitions when available */ -#if defined(__GNUC__) && !defined(__APPLE__) +#if defined(__GNUC__) && !defined(__APPLE__) && !defined(__MINGW32__) #if defined(__FreeBSD__) || defined(__OpenBSD__) #include #else diff --git a/src/game/client/components/menus_ingame.cpp b/src/game/client/components/menus_ingame.cpp index 1afcefe5..3a4ad6f2 100644 --- a/src/game/client/components/menus_ingame.cpp +++ b/src/game/client/components/menus_ingame.cpp @@ -393,7 +393,7 @@ void CMenus::RenderServerControlKick(CUIRect MainView, bool FilterSpectators) continue; int Index = m_pClient->m_Snap.m_paInfoByTeam[i]->m_ClientID; - if(Index == m_pClient->m_Snap.m_LocalClientID || FilterSpectators && m_pClient->m_Snap.m_paInfoByTeam[i]->m_Team == TEAM_SPECTATORS) + if(Index == m_pClient->m_Snap.m_LocalClientID || (FilterSpectators && m_pClient->m_Snap.m_paInfoByTeam[i]->m_Team == TEAM_SPECTATORS)) continue; if(m_CallvoteSelectedPlayer == Index) Selected = NumOptions; -- cgit 1.4.1