mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-26 00:04:43 +01:00
Merge pull request #17012 from Gymnasiast/fix/17009
Fix #17009: “No money” flag in SV6 saves not imported correctly
This commit is contained in:
@@ -2206,11 +2206,6 @@ namespace RCT1
|
||||
gParkFlags |= PARK_FLAGS_UNLOCK_ALL_PRICES;
|
||||
}
|
||||
|
||||
if (_s4.park_flags & RCT1_PARK_FLAGS_NO_MONEY)
|
||||
{
|
||||
gParkFlags |= PARK_FLAGS_NO_MONEY;
|
||||
}
|
||||
|
||||
gParkSize = _s4.park_size;
|
||||
gTotalRideValueForMoney = _s4.total_ride_value_for_money;
|
||||
gSamePriceThroughoutPark = 0;
|
||||
|
||||
@@ -256,10 +256,13 @@ namespace RCT2
|
||||
gParkFlags = _s6.park_flags & ~PARK_FLAGS_NO_MONEY_SCENARIO;
|
||||
|
||||
// RCT2 used a different flag for `no money` when the park is a scenario
|
||||
if (_s6.header.type == S6_TYPE_SCENARIO && (_s6.park_flags & PARK_FLAGS_NO_MONEY_SCENARIO))
|
||||
gParkFlags |= PARK_FLAGS_NO_MONEY;
|
||||
else
|
||||
gParkFlags &= ~PARK_FLAGS_NO_MONEY;
|
||||
if (_s6.header.type == S6_TYPE_SCENARIO)
|
||||
{
|
||||
if (_s6.park_flags & PARK_FLAGS_NO_MONEY_SCENARIO)
|
||||
gParkFlags |= PARK_FLAGS_NO_MONEY;
|
||||
else
|
||||
gParkFlags &= ~PARK_FLAGS_NO_MONEY;
|
||||
}
|
||||
|
||||
gParkEntranceFee = _s6.park_entrance_fee;
|
||||
// rct1_park_entrance_x
|
||||
|
||||
Reference in New Issue
Block a user