From 08e0b9ae8d5d75476a6782eb99bf35f2c26058af Mon Sep 17 00:00:00 2001 From: Henry Cheng <39224097+jazzysoggy@users.noreply.github.com> Date: Mon, 25 Jul 2022 09:39:19 -0400 Subject: [PATCH] Fix #17508: Grid Doesn't Disable After Setting Patrol Area (#17574) * Move show_gridlines to only run under condition * Update changelog.txt Co-authored-by: Hielke Morsink Co-authored-by: duncanspumpkin --- distribution/changelog.txt | 1 + src/openrct2-ui/windows/PatrolArea.cpp | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index 97d03fb514..7bd2da9979 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -12,6 +12,7 @@ - Fix: [#17339] Distorted visuals when changing scaling factor between integer numbers in OpenGL rendering mode. - Fix: [#17444] “Manta Ray” boats slowed down too much in “Ayers Rock” scenario (original bug). - Fix: [#17503] Parks with staff with an ID of 0 have all staff windows focus on that staff +- Fix: [#17508] Grid doesn’t disable after setting patrol area. - Fix: [#17553] Crash when moving invention list items to empty list 0.4.1 (2022-07-04) diff --git a/src/openrct2-ui/windows/PatrolArea.cpp b/src/openrct2-ui/windows/PatrolArea.cpp index 67a823ef50..7a7ab4f2dc 100644 --- a/src/openrct2-ui/windows/PatrolArea.cpp +++ b/src/openrct2-ui/windows/PatrolArea.cpp @@ -244,11 +244,10 @@ private: } else { - show_gridlines(); if (!tool_set(this, 0, Tool::WalkDown)) { - input_set_flag(INPUT_FLAG_6, true); show_gridlines(); + input_set_flag(INPUT_FLAG_6, true); SetPatrolAreaToRender(_staffId); gfx_invalidate_screen(); }