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

Fix #17009: “No money” flag in SV6 saves not imported correctly

This commit is contained in:
Gymnasiast
2022-04-18 18:26:07 +02:00
parent 2653a0c976
commit 060a9afaae

View File

@@ -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