mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
fixed more compiler warnings
This commit is contained in:
parent
9d930e15f8
commit
141089f257
|
@ -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;
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue