mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Move variable declaration
This commit is contained in:
parent
3bed3be39c
commit
e291a3a70c
|
@ -72,7 +72,6 @@ void CMenus::RenderDemoPlayer(CUIRect MainView)
|
|||
const float ButtonbarHeight = 20.0f;
|
||||
const float NameBarHeight = 20.0f;
|
||||
const float Margins = 5.0f;
|
||||
float TotalHeight;
|
||||
static int64_t LastSpeedChange = 0;
|
||||
|
||||
// render popups
|
||||
|
@ -236,7 +235,7 @@ void CMenus::RenderDemoPlayer(CUIRect MainView)
|
|||
}
|
||||
}
|
||||
|
||||
TotalHeight = SeekBarHeight + ButtonbarHeight + NameBarHeight + Margins * 3;
|
||||
float TotalHeight = SeekBarHeight + ButtonbarHeight + NameBarHeight + Margins * 3;
|
||||
|
||||
// render speed info
|
||||
if(g_Config.m_ClDemoShowSpeed && time_get() - LastSpeedChange < time_freq() * 1)
|
||||
|
|
Loading…
Reference in a new issue