Fix editor zoom in (#7047)

This commit is contained in:
Timo T 2022-06-02 15:51:18 +02:00 committed by GitHub
parent 7df71571dc
commit 22c8b033c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,8 +31,6 @@ class EditorMapHolder(
private lateinit var tileGroupMap: TileGroupMap<TileGroup>
private val allTileGroups = ArrayList<TileGroup>()
private val maxWorldZoomOut = UncivGame.Current.settings.maxWorldZoomOut
private var blinkAction: Action? = null
private var savedCaptureListeners = emptyList<EventListener>()
@ -91,9 +89,7 @@ class EditorMapHolder(
tileGroup.onClick { onTileClick(tileGroup.tileInfo) }
}
setSize(stage.width * maxWorldZoomOut, stage.height * maxWorldZoomOut)
setOrigin(width / 2,height / 2)
center(stage)
setSize(stage.width, stage.height)
layout()