forked from rosebudai/OpenRCT2-Web
commit
27a26a616a
19 files changed
+28
-45
No files matched your search
+5
-5
@@ -213,9 +213,6 @@
|
||||
#define RCT2_ADDRESS_SPRITE_LISTS_HEAD 0x013573BC
|
||||
#define RCT2_ADDRESS_SPRITE_LISTS_COUNT 0x013573C8
|
||||
#define RCT2_ADDRESS_CURRENT_PARK_VALUE 0x0135853C
|
||||
#define RCT2_ADDRESS_AWARD_LIST 0x01358760
|
||||
#define RCT2_ADDRESS_SAME_PRICE_THROUGHOUT 0x01358838
|
||||
#define RCT2_ADDRESS_SAME_PRICE_THROUGHOUT_EXTENDED 0x0135934C
|
||||
|
||||
#define RCT2_ADDRESS_PEEP_SPAWNS 0x013573F2
|
||||
|
||||
@@ -228,8 +225,6 @@
|
||||
#define RCT2_ADDRESS_MAP_SIZE 0x01358834
|
||||
#define RCT2_ADDRESS_MAP_MAX_XY 0x01358836
|
||||
|
||||
#define RCT2_TOTAL_RIDE_VALUE 0x013580EE
|
||||
|
||||
#define RCT2_ADDRESS_PARK_RATING_WARNING_DAYS 0x0135883E
|
||||
|
||||
#define RCT2_ADDRESS_PARK_ENTRANCE_X 0x01359350
|
||||
@@ -526,6 +521,7 @@
|
||||
|
||||
#define RCT2_ADDRESS_INITIAL_CASH 0x013573DC
|
||||
#define RCT2_ADDRESS_CURRENT_LOAN 0x013573E0
|
||||
#define RCT2_TOTAL_RIDE_VALUE 0x013580EE
|
||||
#define RCT2_ADDRESS_MAXIMUM_LOAN 0x013580F0
|
||||
#define RCT2_ADDRESS_CURRENT_EXPENDITURE 0x0135832C
|
||||
#define RCT2_ADDRESS_CURRENT_PROFIT 0x01358330
|
||||
@@ -564,6 +560,9 @@
|
||||
#define RCT2_ADDRESS_GUEST_INITIAL_HUNGER 0x013580F6
|
||||
#define RCT2_ADDRESS_GUEST_INITIAL_THIRST 0x013580F7
|
||||
|
||||
#define RCT2_ADDRESS_SAME_PRICE_THROUGHOUT 0x01358838
|
||||
#define RCT2_ADDRESS_SAME_PRICE_THROUGHOUT_EXTENDED 0x0135934C
|
||||
|
||||
#define RCT2_ADDRESS_CURRENT_RESEARCH_LEVEL 0x013573FF
|
||||
#define RCT2_ADDRESS_ACTIVE_RESEARCH_TYPES 0x01357CF2
|
||||
#define RCT2_ADDRESS_RESEARH_PROGRESS_STAGE 0x01357CF3
|
||||
@@ -584,6 +583,7 @@
|
||||
#define RCT2_ADDRESS_RESEARCHED_SCENERY_ITEMS 0x01357BD0
|
||||
|
||||
#define RCT2_ADDRESS_PARK_SIZE 0x013580EA
|
||||
#define RCT2_ADDRESS_AWARD_LIST 0x01358760
|
||||
#define RCT2_ADDRESS_LAND_COST 0x01358770
|
||||
#define RCT2_ADDRESS_CONSTRUCTION_RIGHTS_COST 0x01358772
|
||||
#define RCT2_ADDRESS_LOAN_HASH 0x013587C4
|
||||
|
||||
@@ -14,7 +14,6 @@
|
||||
*****************************************************************************/
|
||||
#pragma endregion
|
||||
|
||||
#include "../addresses.h"
|
||||
#include "../audio/audio.h"
|
||||
#include "../config.h"
|
||||
#include "../drawing/drawing.h"
|
||||
|
||||
@@ -14,7 +14,6 @@
|
||||
*****************************************************************************/
|
||||
#pragma endregion
|
||||
|
||||
#include "../addresses.h"
|
||||
#include "../drawing/drawing.h"
|
||||
#include "../input.h"
|
||||
#include "../sprites.h"
|
||||
|
||||
@@ -18,9 +18,6 @@
|
||||
#define _DATE_H_
|
||||
|
||||
#include "../common.h"
|
||||
#ifndef NO_RCT2
|
||||
#include "../addresses.h"
|
||||
#endif
|
||||
|
||||
enum {
|
||||
MONTH_MARCH,
|
||||
|
||||
@@ -14,7 +14,6 @@
|
||||
*****************************************************************************/
|
||||
#pragma endregion
|
||||
|
||||
#include "../addresses.h"
|
||||
#include "../config.h"
|
||||
#include "../interface/window.h"
|
||||
#include "../localisation/localisation.h"
|
||||
@@ -68,7 +67,7 @@ static const rct_string_id AwardNewsStrings[] = {
|
||||
STR_NEWS_ITEM_BEST_GENTLE_RIDES,
|
||||
};
|
||||
|
||||
rct_award *gCurrentAwards = RCT2_ADDRESS(RCT2_ADDRESS_AWARD_LIST, rct_award);
|
||||
rct_award gCurrentAwards[MAX_AWARDS];
|
||||
|
||||
bool award_is_positive(int type)
|
||||
{
|
||||
|
||||
@@ -50,7 +50,7 @@ enum {
|
||||
|
||||
#define MAX_AWARDS 4
|
||||
|
||||
extern rct_award *gCurrentAwards;
|
||||
extern rct_award gCurrentAwards[MAX_AWARDS];
|
||||
|
||||
bool award_is_positive(int type);
|
||||
void award_reset();
|
||||
|
||||
@@ -14,7 +14,6 @@
|
||||
*****************************************************************************/
|
||||
#pragma endregion
|
||||
|
||||
#include "../addresses.h"
|
||||
#include "../game.h"
|
||||
#include "../interface/window.h"
|
||||
#include "../localisation/date.h"
|
||||
|
||||
@@ -14,7 +14,6 @@
|
||||
*****************************************************************************/
|
||||
#pragma endregion
|
||||
|
||||
#include "../addresses.h"
|
||||
#include "../config.h"
|
||||
#include "../game.h"
|
||||
#include "../interface/window.h"
|
||||
|
||||
@@ -14,7 +14,6 @@
|
||||
*****************************************************************************/
|
||||
#pragma endregion
|
||||
|
||||
#include "../addresses.h"
|
||||
#include "../config.h"
|
||||
#include "../game.h"
|
||||
#include "../interface/window.h"
|
||||
@@ -218,14 +217,11 @@ void research_finish_item(sint32 entryIndex)
|
||||
}
|
||||
}
|
||||
|
||||
// I don't think 0x009AC06C is ever not 0, so probably redundant
|
||||
if (RCT2_GLOBAL(0x009AC06C, uint8) == 0) {
|
||||
set_format_arg(0, rct_string_id, ((rideEntry->flags & RIDE_ENTRY_FLAG_SEPARATE_RIDE_NAME)) ?
|
||||
rideEntry->name : RideNaming[base_ride_type].name);
|
||||
if (!gSilentResearch) {
|
||||
if (gConfigNotifications.ride_researched) {
|
||||
news_item_add_to_queue(NEWS_ITEM_RESEARCH, STR_NEWS_ITEM_RESEARCH_NEW_RIDE_AVAILABLE, entryIndex);
|
||||
}
|
||||
set_format_arg(0, rct_string_id, ((rideEntry->flags & RIDE_ENTRY_FLAG_SEPARATE_RIDE_NAME)) ?
|
||||
rideEntry->name : RideNaming[base_ride_type].name);
|
||||
if (!gSilentResearch) {
|
||||
if (gConfigNotifications.ride_researched) {
|
||||
news_item_add_to_queue(NEWS_ITEM_RESEARCH, STR_NEWS_ITEM_RESEARCH_NEW_RIDE_AVAILABLE, entryIndex);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -238,13 +234,10 @@ void research_finish_item(sint32 entryIndex)
|
||||
gResearchedSceneryItems[subSceneryEntryIndex >> 5] |= 1UL << (subSceneryEntryIndex & 0x1F);
|
||||
}
|
||||
|
||||
// I don't think 0x009AC06C is ever not 0, so probably redundant
|
||||
if (RCT2_GLOBAL(0x009AC06C, uint8) == 0) {
|
||||
set_format_arg(0, rct_string_id, scenerySetEntry->name);
|
||||
if (!gSilentResearch) {
|
||||
if (gConfigNotifications.ride_researched) {
|
||||
news_item_add_to_queue(NEWS_ITEM_RESEARCH, STR_NEWS_ITEM_RESEARCH_NEW_SCENERY_SET_AVAILABLE, entryIndex);
|
||||
}
|
||||
set_format_arg(0, rct_string_id, scenerySetEntry->name);
|
||||
if (!gSilentResearch) {
|
||||
if (gConfigNotifications.ride_researched) {
|
||||
news_item_add_to_queue(NEWS_ITEM_RESEARCH, STR_NEWS_ITEM_RESEARCH_NEW_SCENERY_SET_AVAILABLE, entryIndex);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -967,7 +967,7 @@ void S4Importer::ImportParkFlags()
|
||||
}
|
||||
|
||||
// Awards
|
||||
for (int i = 0; i < 4; i++)
|
||||
for (int i = 0; i < MAX_AWARDS; i++)
|
||||
{
|
||||
gCurrentAwards[i] = _s4.awards[i];
|
||||
}
|
||||
|
||||
@@ -138,6 +138,10 @@ int gRideRemoveTrackPieceCallbackZ;
|
||||
int gRideRemoveTrackPieceCallbackDirection;
|
||||
int gRideRemoveTrackPieceCallbackType;
|
||||
|
||||
money16 gTotalRideValue;
|
||||
uint32 gSamePriceThroughoutParkA;
|
||||
uint32 gSamePriceThroughoutParkB;
|
||||
|
||||
money32 _currentTrackPrice;
|
||||
|
||||
uint16 _numCurrentPossibleRideConfigurations;
|
||||
|
||||
+3
-3
@@ -920,9 +920,9 @@ rct_ride_measurement *get_ride_measurement(int index);
|
||||
for (i = 0; i < MAX_RIDES; i++) \
|
||||
if ((ride = get_ride(i))->type != RIDE_TYPE_NULL)
|
||||
|
||||
#define gTotalRideValue RCT2_GLOBAL(RCT2_TOTAL_RIDE_VALUE, money16)
|
||||
#define gSamePriceThroughoutParkA RCT2_GLOBAL(RCT2_ADDRESS_SAME_PRICE_THROUGHOUT, uint32)
|
||||
#define gSamePriceThroughoutParkB RCT2_GLOBAL(RCT2_ADDRESS_SAME_PRICE_THROUGHOUT_EXTENDED, uint32)
|
||||
extern money16 gTotalRideValue;
|
||||
extern uint32 gSamePriceThroughoutParkA;
|
||||
extern uint32 gSamePriceThroughoutParkB;
|
||||
|
||||
extern const uint8 gRideClassifications[255];
|
||||
|
||||
|
||||
+1
-1
@@ -243,7 +243,7 @@ typedef struct rct_s6_data {
|
||||
money32 income_from_admissions;
|
||||
money32 company_value;
|
||||
uint8 peep_warning_throttle[16];
|
||||
rct_award awards[4];
|
||||
rct_award awards[MAX_AWARDS];
|
||||
money16 land_price;
|
||||
money16 construction_rights_price;
|
||||
uint16 word_01358774;
|
||||
|
||||
@@ -15,7 +15,6 @@
|
||||
#pragma endregion
|
||||
|
||||
#include <time.h>
|
||||
#include "addresses.h"
|
||||
#include "audio/audio.h"
|
||||
#include "config.h"
|
||||
#include "drawing/drawing.h"
|
||||
|
||||
+1
-1
@@ -2546,7 +2546,7 @@ static rct_string_id window_ride_get_status_vehicle(rct_window *w, void *argumen
|
||||
trackType == TRACK_ELEM_DIAG_25_DEG_UP_TO_FLAT ||
|
||||
trackType == TRACK_ELEM_DIAG_60_DEG_UP_TO_FLAT) {
|
||||
if (track_type_is_invented(ride->type, TRACK_BLOCK_BRAKES) && vehicle->velocity == 0) {
|
||||
RCT2_GLOBAL((uintptr_t)arguments + 0, rct_string_id) = STR_STOPPED_BY_BLOCK_BRAKES;
|
||||
*(rct_string_id*)(uintptr_t)arguments = STR_STOPPED_BY_BLOCK_BRAKES;
|
||||
return STR_BLACK_STRING;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,7 +14,6 @@
|
||||
*****************************************************************************/
|
||||
#pragma endregion
|
||||
|
||||
#include "../addresses.h"
|
||||
#include "../audio/audio.h"
|
||||
#include "../cheats.h"
|
||||
#include "../game.h"
|
||||
|
||||
+1
-2
@@ -14,14 +14,13 @@
|
||||
*****************************************************************************/
|
||||
#pragma endregion
|
||||
|
||||
#include "../addresses.h"
|
||||
#include "../game.h"
|
||||
#include "../localisation/localisation.h"
|
||||
#include "../ride/ride.h"
|
||||
#include "banner.h"
|
||||
#include "map.h"
|
||||
|
||||
rct_banner *gBanners = RCT2_ADDRESS(0x0135A124, rct_banner);
|
||||
rct_banner gBanners[MAX_BANNERS];
|
||||
|
||||
/**
|
||||
*
|
||||
|
||||
+1
-1
@@ -42,7 +42,7 @@ enum{
|
||||
BANNER_FLAG_2 = (1 << 2)
|
||||
};
|
||||
|
||||
extern rct_banner *gBanners;
|
||||
extern rct_banner gBanners[MAX_BANNERS];
|
||||
|
||||
void banner_init();
|
||||
int create_new_banner(uint8 flags);
|
||||
|
||||
@@ -18,9 +18,6 @@
|
||||
#define _MAP_H_
|
||||
|
||||
#include "../common.h"
|
||||
#ifndef NO_RCT2
|
||||
#include "../addresses.h"
|
||||
#endif
|
||||
|
||||
#pragma pack(push, 1)
|
||||
typedef struct rct_map_element_surface_properties {
|
||||
|
||||
Reference in new issue
Block a user