mirror of
https://github.com/OpenRCT2/OpenRCT2.git
synced 2025-01-22 10:21:57 -05:00
Fix #17104: Changing map size does not invalidate park size
This commit is contained in:
parent
2b19b14d34
commit
4035139f31
3 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue