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:
@@ -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'
|
||||
|
||||
@@ -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 can’t 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.
|
||||
|
||||
@@ -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))
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user