Allow zooming in further in Editor

As requested by Cøke
This commit is contained in:
def 2020-10-22 16:59:29 +02:00
parent 8b0e94b030
commit 64c7f2b731

View file

@ -6140,13 +6140,13 @@ void CEditor::Render()
if(Zoom != 0)
{
float OldLevel = m_ZoomLevel;
m_ZoomLevel = clamp(m_ZoomLevel + Zoom * 20, 50, 2000);
m_ZoomLevel = clamp(m_ZoomLevel + Zoom * 20, 10, 2000);
if(g_Config.m_EdZoomTarget)
ZoomMouseTarget((float)m_ZoomLevel / OldLevel);
}
}
m_ZoomLevel = clamp(m_ZoomLevel, 50, 2000);
m_ZoomLevel = clamp(m_ZoomLevel, 10, 2000);
m_WorldZoom = m_ZoomLevel / 100.0f;
if(m_GuiActive)