mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 14:38:18 +00:00
fixed some warnings with gcc
This commit is contained in:
parent
d73c867671
commit
525825c215
|
@ -315,8 +315,6 @@ int CServerBrowser::CServerFilter::SortHash() const
|
|||
|
||||
void CServerBrowser::CServerFilter::Sort()
|
||||
{
|
||||
int i;
|
||||
|
||||
// create filtered list
|
||||
Filter();
|
||||
|
||||
|
|
|
@ -228,7 +228,7 @@ void CHud::RenderScoreHud()
|
|||
{
|
||||
int Local = -1;
|
||||
int aPos[2] = { 1, 2 };
|
||||
CGameClient::CPlayerInfoItem aPlayerInfo[2] = {0};
|
||||
CGameClient::CPlayerInfoItem aPlayerInfo[2] = {{0}};
|
||||
int i = 0;
|
||||
for(int t = 0; t < 2 && i < MAX_CLIENTS && m_pClient->m_Snap.m_aInfoByScore[i].m_pPlayerInfo; ++i)
|
||||
{
|
||||
|
|
|
@ -207,7 +207,7 @@ class CMenus : public CComponent
|
|||
char m_aSaveSkinName[24];
|
||||
|
||||
void SaveSkinfile();
|
||||
void WriteLineSkinfile(IOHANDLE File, char *pLine);
|
||||
void WriteLineSkinfile(IOHANDLE File, const char *pLine);
|
||||
|
||||
//
|
||||
bool m_EscapePressed;
|
||||
|
|
|
@ -375,7 +375,6 @@ bool CMenus::RenderFilterHeader(CUIRect View, int FilterIndex)
|
|||
|
||||
View.VSplitLeft(50.0f, 0, &Label);
|
||||
Label.HMargin(2.0f, &Label);
|
||||
char aBuf[256];
|
||||
if(pFilter->Custom() <= CBrowserFilter::FILTER_ALL)
|
||||
UI()->DoLabel(&Label, pFilter->Name(), 12.0f, -1);
|
||||
else
|
||||
|
|
|
@ -115,7 +115,7 @@ void CMenus::SaveSkinfile()
|
|||
io_close(File);
|
||||
}
|
||||
|
||||
void CMenus::WriteLineSkinfile(IOHANDLE File, char *pLine)
|
||||
void CMenus::WriteLineSkinfile(IOHANDLE File, const char *pLine)
|
||||
{
|
||||
io_write(File, pLine, str_length(pLine));
|
||||
io_write_newline(File);
|
||||
|
@ -1522,8 +1522,6 @@ void CMenus::RenderSettingsSound(CUIRect MainView)
|
|||
|
||||
void CMenus::RenderSettings(CUIRect MainView)
|
||||
{
|
||||
static int s_SettingsPage = 0;
|
||||
|
||||
CUIRect RestartWarning;
|
||||
MainView.HSplitBottom(15.0f, &MainView, &RestartWarning);
|
||||
RenderTools()->DrawUIRect(&MainView, ms_ColorTabbarActive, CUI::CORNER_ALL, 10.0f);
|
||||
|
|
|
@ -96,7 +96,6 @@ void CPlayers::RenderHook(
|
|||
Prev = *pPrevChar;
|
||||
Player = *pPlayerChar;
|
||||
|
||||
CNetObj_PlayerInfo pInfo = *pPlayerInfo;
|
||||
CTeeRenderInfo RenderInfo = m_aRenderInfo[ClientID];
|
||||
|
||||
float IntraTick = Client()->IntraGameTick();
|
||||
|
|
Loading…
Reference in a new issue