1
0
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:
Duncan Frost
2015-02-27 09:11:56 +00:00
parent 189d5d2f08
commit b72ffb43db
2 changed files with 112 additions and 12 deletions

View File

@@ -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();
}
/**