1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-19 21:13:05 +01:00

Merge pull request #21491 from ZehMatt/fix-21484

Fix #21484: Upkeep costs for some rides/facilities/shops are not calculated correctly
This commit is contained in:
Michał Janiszewski
2024-03-02 21:15:23 +01:00
committed by GitHub
4 changed files with 8 additions and 2 deletions

View File

@@ -6,6 +6,6 @@ Checks: >
modernize-use-override
CheckOptions:
- key: cppcoreguidelines-macro-usage.AllowedRegexp
value: 'validate_global_widx'
value: 'validate_global_widx|NETWORK_STREAM_VERSION'
WarningsAsErrors: true
FormatStyle: 'file'

View File

@@ -32,6 +32,7 @@
- Fix: [#21347] Too many options are hidden if the platform has no file picker.
- Fix: [#21350] Maze and Mini Golf track designs from RCT1 not shown in track designs list.
- Fix: [#21425] Additional missing/misplaced land & construction rights tiles in Japanese Coastal Reclaim.
- Fix: [#21484] Upkeep costs for some rides/facilities/shops are not calculated correctly.
- Fix: [#21498] Crash when the size of text cant be determined.
- Fix: [objects#262, objects#263, objects#265, objects#266, objects#267, objects#268, objects#270, objects#271, objects#283] Various errors in expansion pack objects (original bug).
- Fix: [OpenSFX#18] B&M Roar sound effect not looping correctly.

View File

@@ -148,6 +148,10 @@ GameActions::Result RideCreateAction::Execute() const
station.Exit.SetNull();
station.TrainAtStation = RideStation::NO_TRAIN;
station.QueueTime = 0;
station.SegmentLength = 0;
station.QueueLength = 0;
station.Length = 0;
station.Height = 0;
}
std::fill(std::begin(ride->vehicles), std::end(ride->vehicles), EntityId::GetNull());
@@ -308,6 +312,7 @@ GameActions::Result RideCreateAction::Execute() const
ride->income_per_hour = kMoney64Undefined;
ride->profit = kMoney64Undefined;
ride->connected_message_throttle = 0;
ride->drops = 0;
ride->entrance_style = OBJECT_ENTRY_INDEX_NULL;
if (rtd.HasFlag(RIDE_TYPE_FLAG_HAS_ENTRANCE_EXIT))

View File

@@ -46,7 +46,7 @@ using namespace OpenRCT2;
// It is used for making sure only compatible builds get connected, even within
// single OpenRCT2 version.
#define NETWORK_STREAM_VERSION "4"
#define NETWORK_STREAM_VERSION "5"
#define NETWORK_STREAM_ID OPENRCT2_VERSION "-" NETWORK_STREAM_VERSION