mirror of https://github.com/OpenRCT2/OpenRCT2.git
Exit scenery selection mode when done saving
This commit is contained in:
parent
79a85cd659
commit
d8bc890d0a
|
@ -1100,6 +1100,7 @@ bool shop_item_is_souvenir(int shopItem);
|
||||||
void ride_reset_all_names();
|
void ride_reset_all_names();
|
||||||
const uint8* ride_seek_available_modes(rct_ride *ride);
|
const uint8* ride_seek_available_modes(rct_ride *ride);
|
||||||
|
|
||||||
|
void window_ride_measurements_design_cancel();
|
||||||
void window_ride_construction_mouseup_demolish_next_piece(int x, int y, int z, int direction, int type);
|
void window_ride_construction_mouseup_demolish_next_piece(int x, int y, int z, int direction, int type);
|
||||||
|
|
||||||
const uint32 ride_customers_per_hour(const rct_ride *ride);
|
const uint32 ride_customers_per_hour(const rct_ride *ride);
|
||||||
|
|
|
@ -910,6 +910,7 @@ static void window_loadsave_select(rct_window *w, const char *path)
|
||||||
|
|
||||||
if (success) {
|
if (success) {
|
||||||
window_close_by_class(WC_LOADSAVE);
|
window_close_by_class(WC_LOADSAVE);
|
||||||
|
window_ride_measurements_design_cancel();
|
||||||
window_loadsave_invoke_callback(MODAL_RESULT_OK);
|
window_loadsave_invoke_callback(MODAL_RESULT_OK);
|
||||||
} else {
|
} else {
|
||||||
window_error_open(STR_FILE_DIALOG_TITLE_SAVE_TRACK, STR_TRACK_SAVE_FAILED);
|
window_error_open(STR_FILE_DIALOG_TITLE_SAVE_TRACK, STR_TRACK_SAVE_FAILED);
|
||||||
|
|
|
@ -4690,7 +4690,7 @@ static void window_ride_measurements_design_select_nearby_scenery()
|
||||||
*
|
*
|
||||||
* rct2: 0x006AD4DA
|
* rct2: 0x006AD4DA
|
||||||
*/
|
*/
|
||||||
static void window_ride_measurements_design_cancel()
|
void window_ride_measurements_design_cancel()
|
||||||
{
|
{
|
||||||
if (RCT2_GLOBAL(0x009DEA6F, uint8) & 1)
|
if (RCT2_GLOBAL(0x009DEA6F, uint8) & 1)
|
||||||
cancel_scenery_selection();
|
cancel_scenery_selection();
|
||||||
|
|
Loading…
Reference in New Issue