mirror of https://github.com/OpenRCT2/OpenRCT2.git
Integrate some scenario variables
gScenarioTicks is still being used in some of native code
This commit is contained in:
parent
761fdfb7c0
commit
199d0f03d8
|
@ -66,6 +66,21 @@ char gScenarioSavePath[MAX_PATH];
|
|||
int gFirstTimeSave = 1;
|
||||
uint32 gLastAutoSaveTick = 0;
|
||||
|
||||
#if defined(NO_RCT2)
|
||||
uint32 gScenarioTicks;
|
||||
#endif
|
||||
uint32 gScenarioSrand0;
|
||||
uint32 gScenarioSrand1;
|
||||
|
||||
uint8 gScenarioObjectiveType;
|
||||
uint8 gScenarioObjectiveYear;
|
||||
uint16 gScenarioObjectiveNumGuests;
|
||||
money32 gScenarioObjectiveCurrency;
|
||||
|
||||
uint16 gScenarioParkRatingWarningDays;
|
||||
money32 gScenarioCompletedCompanyValue;
|
||||
money32 gScenarioCompanyValueRecord;
|
||||
|
||||
static int scenario_create_ducks();
|
||||
static void scenario_objective_check();
|
||||
|
||||
|
|
|
@ -427,18 +427,22 @@ typedef struct source_desc {
|
|||
|
||||
extern const rct_string_id ScenarioCategoryStringIds[SCENARIO_CATEGORY_COUNT];
|
||||
|
||||
#if defined(NO_RCT2)
|
||||
extern uint32 gScenarioTicks;
|
||||
#else
|
||||
#define gScenarioTicks RCT2_GLOBAL(RCT2_ADDRESS_SCENARIO_TICKS, uint32)
|
||||
#define gScenarioSrand0 RCT2_GLOBAL(RCT2_ADDRESS_SCENARIO_SRAND_0, uint32)
|
||||
#define gScenarioSrand1 RCT2_GLOBAL(RCT2_ADDRESS_SCENARIO_SRAND_1, uint32)
|
||||
#endif
|
||||
extern uint32 gScenarioSrand0;
|
||||
extern uint32 gScenarioSrand1;
|
||||
|
||||
#define gScenarioObjectiveType RCT2_GLOBAL(RCT2_ADDRESS_OBJECTIVE_TYPE, uint8)
|
||||
#define gScenarioObjectiveYear RCT2_GLOBAL(RCT2_ADDRESS_OBJECTIVE_YEAR, uint8)
|
||||
#define gScenarioObjectiveNumGuests RCT2_GLOBAL(RCT2_ADDRESS_OBJECTIVE_NUM_GUESTS, uint16)
|
||||
#define gScenarioObjectiveCurrency RCT2_GLOBAL(RCT2_ADDRESS_OBJECTIVE_CURRENCY, money32)
|
||||
extern uint8 gScenarioObjectiveType;
|
||||
extern uint8 gScenarioObjectiveYear;
|
||||
extern uint16 gScenarioObjectiveNumGuests;
|
||||
extern money32 gScenarioObjectiveCurrency;
|
||||
|
||||
#define gScenarioParkRatingWarningDays RCT2_GLOBAL(RCT2_ADDRESS_PARK_RATING_WARNING_DAYS, uint16)
|
||||
#define gScenarioCompletedCompanyValue RCT2_GLOBAL(RCT2_ADDRESS_COMPLETED_COMPANY_VALUE, money32)
|
||||
#define gScenarioCompanyValueRecord RCT2_GLOBAL(RCT2_ADDRESS_COMPANY_VALUE_RECORD, money32)
|
||||
extern uint16 gScenarioParkRatingWarningDays;
|
||||
extern money32 gScenarioCompletedCompanyValue;
|
||||
extern money32 gScenarioCompanyValueRecord;
|
||||
|
||||
// Scenario list
|
||||
extern int gScenarioListCount;
|
||||
|
|
Loading…
Reference in New Issue