mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 14:38:18 +00:00
Remove redundant m_GuiActive
checks
This condition is already checked before calling the methods.
This commit is contained in:
parent
7b80ad1982
commit
4cdd36aed3
|
@ -3286,9 +3286,6 @@ int CEditor::DoProperties(CUIRect *pToolBox, CProperty *pProps, int *pIDs, int *
|
|||
|
||||
void CEditor::RenderLayers(CUIRect ToolBox, CUIRect View)
|
||||
{
|
||||
if(!m_GuiActive)
|
||||
return;
|
||||
|
||||
CUIRect LayersBox = ToolBox;
|
||||
CUIRect Slot, Button;
|
||||
char aBuf[64];
|
||||
|
@ -3987,9 +3984,6 @@ void CEditor::SortImages()
|
|||
|
||||
void CEditor::RenderImages(CUIRect ToolBox, CUIRect View)
|
||||
{
|
||||
if(!m_GuiActive)
|
||||
return;
|
||||
|
||||
static float s_ScrollValue = 0;
|
||||
float ImagesHeight = 30.0f + 14.0f * m_Map.m_vpImages.size() + 27.0f;
|
||||
float ScrollDifference = ImagesHeight - ToolBox.h;
|
||||
|
@ -4201,9 +4195,6 @@ void CEditor::RenderImages(CUIRect ToolBox, CUIRect View)
|
|||
|
||||
void CEditor::RenderSounds(CUIRect ToolBox, CUIRect View)
|
||||
{
|
||||
if(!m_GuiActive)
|
||||
return;
|
||||
|
||||
static float s_ScrollValue = 0;
|
||||
float SoundsHeight = 30.0f + 14.0f * m_Map.m_vpSounds.size() + 27.0f;
|
||||
float ScrollDifference = SoundsHeight - ToolBox.h;
|
||||
|
|
Loading…
Reference in a new issue