about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authoroy <Tom_Adams@web.de>2011-03-28 23:30:56 +0200
committeroy <Tom_Adams@web.de>2011-03-28 23:30:56 +0200
commit141089f2573d7be7b70d9a187ba855a0f2c756c4 (patch)
tree3c2c47b70c891b23f55fe55c8215d4784f642682 /src
parent9d930e15f8b0da420bc0695f1dc430328344e935 (diff)
downloadzcatch-141089f2573d7be7b70d9a187ba855a0f2c756c4.tar.gz
zcatch-141089f2573d7be7b70d9a187ba855a0f2c756c4.zip
fixed more compiler warnings
Diffstat (limited to 'src')
-rw-r--r--src/game/client/components/chat.cpp4
-rw-r--r--src/game/client/components/menus_ingame.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/game/client/components/chat.cpp b/src/game/client/components/chat.cpp
index cc65e955..19264194 100644
--- a/src/game/client/components/chat.cpp
+++ b/src/game/client/components/chat.cpp
@@ -238,8 +238,8 @@ void CChat::OnMessage(int MsgType, void *pRawMsg)
 
 void CChat::AddLine(int ClientID, int Team, const char *pLine)
 {
-	if(ClientID != -1 && m_pClient->m_aClients[ClientID].m_aName[0] == '\0' || // unknown client
-		m_pClient->m_aClients[ClientID].m_ChatIgnore)
+	if(ClientID != -1 && (m_pClient->m_aClients[ClientID].m_aName[0] == '\0' || // unknown client
+		m_pClient->m_aClients[ClientID].m_ChatIgnore))
 		return;
 	
 	bool Highlighted = false;
diff --git a/src/game/client/components/menus_ingame.cpp b/src/game/client/components/menus_ingame.cpp
index 007842f8..9c03e870 100644
--- a/src/game/client/components/menus_ingame.cpp
+++ b/src/game/client/components/menus_ingame.cpp
@@ -115,7 +115,7 @@ void CMenus::RenderGame(CUIRect MainView)
 	UI()->DoLabelScaled(&Button, Localize("Player options"), 34.0f, -1);
 
 	CUIRect Player;
-	static int s_aPlayerIDs[MAX_CLIENTS][2] = {0};
+	static int s_aPlayerIDs[MAX_CLIENTS][2] = {{0}};
 	for(int i = 0; i < MAX_CLIENTS; ++i)
 	{
 		if(!m_pClient->m_Snap.m_paPlayerInfos[i] || i == m_pClient->m_Snap.m_LocalClientID)