Fix #17104: Changing map size does not invalidate park size

This commit is contained in:
hobyr 2022-05-07 13:41:15 +00:00 committed by GitHub
parent 2b19b14d34
commit 4035139f31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 0 deletions

View File

@ -189,6 +189,7 @@ The following people are not part of the development team, but have been contrib
* Alexander Czarnecki (alcz/zuczek4793)
* Lawrence De Mol (lawrencedemol)
* Erik Wouters (EWouters)
* Hoby R. (hobyr)
## Toolchain
* (Balletie) - macOS

View File

@ -7,6 +7,7 @@
- Fix: [#17073] Corrupt ride window and random crashes when trains have more than 144 cars.
- Fix: [#17080] “Remove litter” cheat does not empty litter bins.
- Fix: [#17099] Object selection thumbnail box is one pixel too tall.
- Fix: [#17104] Changing map size does not invalidate park size.
- Improved: [#16978] Tree placement is more natural during map generation.
- Improved: [#16992] The checkbox in the visibility column of the Tile Inspector has been replaced with an eye symbol.
- Improved: [#16999] The maximum price for the park entry has been raised to £999.

View File

@ -14,6 +14,7 @@
#include "../ui/UiContext.h"
#include "../ui/WindowManager.h"
#include "../windows/Intent.h"
#include "../world/Park.h"
ChangeMapSizeAction::ChangeMapSizeAction(const TileCoordsXY& targetSize)
: _targetSize(targetSize)
@ -68,6 +69,7 @@ GameActions::Result ChangeMapSizeAction::Execute() const
auto* ctx = OpenRCT2::GetContext();
auto uiContext = ctx->GetUiContext();
auto* windowManager = uiContext->GetWindowManager();
park_calculate_size();
windowManager->BroadcastIntent(Intent(INTENT_ACTION_MAP));
gfx_invalidate_screen();