mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-15 19:13:07 +01:00
Fix refurbishment confirmation window not closing in multiplayer mode.
This commit is contained in:
@@ -204,10 +204,6 @@ static void window_ride_refurbish_mouseup(rct_window *w, rct_widgetindex widgetI
|
||||
case WIDX_REFURBISH:
|
||||
{
|
||||
ride_action_modify(w->number, RIDE_MODIFY_RENEW, GAME_COMMAND_FLAG_APPLY);
|
||||
if (!(get_ride(w->number)->lifecycle_flags & RIDE_LIFECYCLE_EVER_BEEN_OPENED))
|
||||
{
|
||||
window_close(w);
|
||||
}
|
||||
break;
|
||||
}
|
||||
case WIDX_CANCEL:
|
||||
|
||||
@@ -115,12 +115,8 @@ public:
|
||||
switch (_modifyType) {
|
||||
case RIDE_MODIFY_DEMOLISH:
|
||||
return DemolishRide(ride);
|
||||
break;
|
||||
case RIDE_MODIFY_RENEW:
|
||||
return RefurbishRide(ride);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
return std::make_unique<GameActionResult>(GA_ERROR::INVALID_PARAMETERS, STR_CANT_DO_THIS);
|
||||
@@ -379,6 +375,8 @@ private:
|
||||
res->Position = { x, y, z };
|
||||
}
|
||||
|
||||
window_close_by_number(WC_DEMOLISH_RIDE_PROMPT, _rideIndex);
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user