From 61c35c8f1c49a5738c4037204fa061a3aed2bbd2 Mon Sep 17 00:00:00 2001 From: Hielke Morsink Date: Sun, 28 Aug 2022 09:36:18 +0200 Subject: [PATCH] Fix #17905: chain button enabled for rectangular maps --- distribution/changelog.txt | 1 + src/openrct2-ui/windows/Map.cpp | 2 ++ 2 files changed, 3 insertions(+) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index 32077168f8..dc47c98d63 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -42,6 +42,7 @@ - Fix: [#17776] “Other Parks” tab uses separate lists for SC4/SC6 and .park scenarios. - Fix: [#17784] Colour preset RNG is biased (original bug). - Fix: [#17834] Finance window becomes blank after 4096 years. +- Fix: [#17905] The chain button in the map window is enabled for rectangular maps when (re)opened. 0.4.1 (2022-07-04) ------------------------------------------------------------------------ diff --git a/src/openrct2-ui/windows/Map.cpp b/src/openrct2-ui/windows/Map.cpp index a7b02e2b14..35df97ec56 100644 --- a/src/openrct2-ui/windows/Map.cpp +++ b/src/openrct2-ui/windows/Map.cpp @@ -161,6 +161,8 @@ public: CentreMapOnViewPoint(); FootpathSelectDefault(); + _mapWidthAndHeightLinked = gMapSize.x == gMapSize.y; + // Reset land rights tool size _landRightsToolSize = 1; }