mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-20 06:58:20 +00:00
Remove unused return value of menus render functions
This commit is contained in:
parent
bd7ee904c0
commit
a49ee14cb0
|
@ -517,7 +517,7 @@ int CMenus::DoKeyReader(const void *pID, const CUIRect *pRect, int Key, int Modi
|
|||
return NewKey;
|
||||
}
|
||||
|
||||
int CMenus::RenderMenubar(CUIRect r)
|
||||
void CMenus::RenderMenubar(CUIRect r)
|
||||
{
|
||||
CUIRect Box = r;
|
||||
CUIRect Button;
|
||||
|
@ -703,8 +703,6 @@ int CMenus::RenderMenubar(CUIRect r)
|
|||
else
|
||||
m_GamePage = NewPage;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
void CMenus::RenderLoading(const char *pCaption, const char *pContent, int IncreaseCounter, bool RenderLoadingBar, bool RenderMenuBackgroundMap)
|
||||
|
@ -917,10 +915,10 @@ bool CMenus::CanDisplayWarning() const
|
|||
return m_Popup == POPUP_NONE;
|
||||
}
|
||||
|
||||
int CMenus::Render()
|
||||
void CMenus::Render()
|
||||
{
|
||||
if(Client()->State() == IClient::STATE_DEMOPLAYBACK && m_Popup == POPUP_NONE)
|
||||
return 0;
|
||||
return;
|
||||
|
||||
CUIRect Screen = *UI()->Screen();
|
||||
UI()->MapScreen();
|
||||
|
@ -1765,8 +1763,6 @@ int CMenus::Render()
|
|||
{
|
||||
m_ShowStart = true;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
#if defined(CONF_VIDEORECORDER)
|
||||
|
|
|
@ -409,11 +409,11 @@ protected:
|
|||
const CFriendItem *m_pRemoveFriend = nullptr;
|
||||
|
||||
// found in menus.cpp
|
||||
int Render();
|
||||
void Render();
|
||||
#if defined(CONF_VIDEORECORDER)
|
||||
void PopupConfirmDemoReplaceVideo();
|
||||
#endif
|
||||
int RenderMenubar(CUIRect r);
|
||||
void RenderMenubar(CUIRect r);
|
||||
void RenderNews(CUIRect MainView);
|
||||
static void ConchainUpdateMusicState(IConsole::IResult *pResult, void *pUserData, IConsole::FCommandCallback pfnCallback, void *pCallbackUserData);
|
||||
void UpdateMusicState();
|
||||
|
|
Loading…
Reference in a new issue