Use const when possible

This commit is contained in:
Robert Müller 2023-05-18 12:21:34 +02:00
parent fe359e2909
commit 13ed0e386a

View file

@ -873,9 +873,9 @@ void CMenus::RenderLoading(const char *pCaption, const char *pContent, int Incre
// TODO: not supported right now due to separate render thread // TODO: not supported right now due to separate render thread
static std::chrono::nanoseconds s_LastLoadRender{0}; static std::chrono::nanoseconds s_LastLoadRender{0};
auto CurLoadRenderCount = m_LoadCurrent; const int CurLoadRenderCount = m_LoadCurrent;
m_LoadCurrent += IncreaseCounter; m_LoadCurrent += IncreaseCounter;
float Percent = CurLoadRenderCount / (float)m_LoadTotal; const float Percent = CurLoadRenderCount / (float)m_LoadTotal;
// make sure that we don't render for each little thing we load // make sure that we don't render for each little thing we load
// because that will slow down loading if we have vsync // because that will slow down loading if we have vsync