mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Allow zooming in further in Editor
As requested by Cøke
This commit is contained in:
parent
8b0e94b030
commit
64c7f2b731
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue