mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-15 11:03:00 +01:00
Fix #15199: Construction window is not closed when a ride gets demolished
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
- Fix: [#15170] Plugin: incorrect label text alignment.
|
||||
- Fix: [#15184] Crash when hovering over water types in Object Selection.
|
||||
- Fix: [#15193] Crash when rides/stalls are demolished.
|
||||
- Fix: [#15199] Construction window is not closed when a ride gets demolished.
|
||||
- Fix: [#15255] Tile Inspector shows banner information on walls that do not contain one.
|
||||
- Fix: [#15289] Unexpected behavior with duplicated banners which also caused desyncs in multiplayer.
|
||||
- Improved: [#3417] Crash dumps are now placed in their own folder.
|
||||
|
||||
@@ -157,10 +157,7 @@ GameActions::Result::Ptr RideDemolishAction::DemolishRide(Ride* ride) const
|
||||
gParkValue = GetContext()->GetGameState()->GetPark().CalculateParkValue();
|
||||
|
||||
// Close windows related to the demolished ride
|
||||
if (!(GetFlags() & GAME_COMMAND_FLAG_ALLOW_DURING_PAUSED))
|
||||
{
|
||||
window_close_by_number(WC_RIDE_CONSTRUCTION, _rideIndex);
|
||||
}
|
||||
window_close_by_number(WC_RIDE_CONSTRUCTION, _rideIndex);
|
||||
window_close_by_number(WC_RIDE, _rideIndex);
|
||||
window_close_by_number(WC_DEMOLISH_RIDE_PROMPT, _rideIndex);
|
||||
window_close_by_class(WC_NEW_CAMPAIGN);
|
||||
|
||||
Reference in New Issue
Block a user