mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-21 05:53:02 +01:00
Finish track_save_scenery. Design cancel now called after save
This commit is contained in:
@@ -28,6 +28,7 @@
|
||||
#include "../peep/staff.h"
|
||||
#include "../ride/ride.h"
|
||||
#include "../ride/ride_data.h"
|
||||
#include "../ride/track.h"
|
||||
#include "../sprites.h"
|
||||
#include "../windows/error.h"
|
||||
#include "../world/map.h"
|
||||
@@ -4408,15 +4409,6 @@ static void window_ride_measurements_design_select_nearby_scenery()
|
||||
RCT2_CALLPROC_EBPSAFE(0x006D303D);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* rct2: 0x006AD4CD
|
||||
*/
|
||||
static void window_ride_measurements_design_save(rct_window *w)
|
||||
{
|
||||
RCT2_CALLPROC_X(0x006D2804, 1, 0, 0, 0, (int)w, 0, 0);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* rct2: 0x006AD4DA
|
||||
@@ -4424,7 +4416,18 @@ static void window_ride_measurements_design_save(rct_window *w)
|
||||
static void window_ride_measurements_design_cancel()
|
||||
{
|
||||
if (RCT2_GLOBAL(0x009DEA6F, uint8) & 1)
|
||||
RCT2_CALLPROC_X(0x006D2804, 0, 0, 0, 0, 0, 0, 0);
|
||||
sub_6D2804(0, 0);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* rct2: 0x006AD4CD
|
||||
*/
|
||||
static void window_ride_measurements_design_save(rct_window *w)
|
||||
{
|
||||
if (sub_6D2804(1, (uint8)w->number) == 0) return;
|
||||
|
||||
window_ride_measurements_design_cancel();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user