diff --git a/core/src/com/unciv/ui/mapeditor/EditorMapHolder.kt b/core/src/com/unciv/ui/mapeditor/EditorMapHolder.kt index 487014c9de..ee7136c99d 100644 --- a/core/src/com/unciv/ui/mapeditor/EditorMapHolder.kt +++ b/core/src/com/unciv/ui/mapeditor/EditorMapHolder.kt @@ -46,6 +46,13 @@ class EditorMapHolder( continuousScrollingX = tileMap.mapParameters.worldWrap addTiles(parentScreen.stage) if (editorScreen != null) addCaptureListener(getDragPaintListener()) + reloadMaxZoom() + } + + internal fun reloadMaxZoom() { + maxZoom = UncivGame.Current.settings.maxWorldZoomOut + minZoom = 1f / maxZoom + if (scaleX < minZoom) zoom(1f) // since normally min isn't reached exactly, only powers of 0.8 } internal fun addTiles(stage: Stage) {