From 3dc0110fe11cc36c1c9e4d0da3d320f2d9ace0c4 Mon Sep 17 00:00:00 2001 From: Daan de Heij Date: Tue, 24 Mar 2020 19:35:00 +0100 Subject: [PATCH] Fix #10993: Guest Count Intent Not Listened To (#11008) * Fix #10993: Guest Count Intent Not Listened To Because of a missing intent case, the guest count did not redraw whenever a guest leaves. * Update changelog. Co-authored-by: Aaron van Geffen --- distribution/changelog.txt | 1 + src/openrct2-ui/WindowManager.cpp | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index 848a83a36b..d2eb72872d 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -41,6 +41,7 @@ - Fix: [#10904] RCT1/LL-scenarios with red water won't open. - Fix: [#10941] The Clear Scenery tool gives refunds for ghost elements. - Fix: [#10963] Light effects are drawn off-centre in some rotations. +- Fix: [#10993] Bottom toolbar not refreshing when a guest leaves the park. - Fix: [#11001] Rides list does not use natural sorting. - Fix: [objects#54] Stage Coach cars are not considered covered by the game. - Fix: [objects#56] Handymen cut grass incorrectly. diff --git a/src/openrct2-ui/WindowManager.cpp b/src/openrct2-ui/WindowManager.cpp index 8163f5e09a..b13103b0f7 100644 --- a/src/openrct2-ui/WindowManager.cpp +++ b/src/openrct2-ui/WindowManager.cpp @@ -413,6 +413,12 @@ public: window_invalidate_by_class(WC_GUEST_LIST); break; + case INTENT_ACTION_UPDATE_GUEST_COUNT: + gToolbarDirtyFlags |= BTM_TB_DIRTY_FLAG_PEEP_COUNT; + window_invalidate_by_class(WC_GUEST_LIST); + window_invalidate_by_class(WC_PARK_INFORMATION); + break; + case INTENT_ACTION_UPDATE_PARK_RATING: gToolbarDirtyFlags |= BTM_TB_DIRTY_FLAG_PARK_RATING; window_invalidate_by_class(WC_PARK_INFORMATION);