mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-31 18:55:23 +01:00
Bump PARK_FILE_MIN_VERSION
This commit is contained in:
@@ -910,7 +910,7 @@ namespace OpenRCT2
|
||||
return true;
|
||||
});
|
||||
|
||||
if (version <= 36)
|
||||
if (version < k16BitParkHistoryVersion)
|
||||
{
|
||||
if (cs.GetMode() == OrcaStream::Mode::READING)
|
||||
{
|
||||
@@ -922,7 +922,7 @@ namespace OpenRCT2
|
||||
for (int i = 0; i < kParkRatingHistorySize; i++)
|
||||
{
|
||||
if (smallHistory[i] == RCT12ParkHistoryUndefined)
|
||||
gameState.Park.RatingHistory[i] = ParkRatingHistoryUndefined;
|
||||
gameState.Park.RatingHistory[i] = kParkRatingHistoryUndefined;
|
||||
else
|
||||
{
|
||||
gameState.Park.RatingHistory[i] = static_cast<uint16_t>(
|
||||
@@ -935,7 +935,7 @@ namespace OpenRCT2
|
||||
uint8_t smallHistory[kParkRatingHistorySize];
|
||||
for (int i = 0; i < kParkRatingHistorySize; i++)
|
||||
{
|
||||
if (gameState.Park.RatingHistory[i] == ParkRatingHistoryUndefined)
|
||||
if (gameState.Park.RatingHistory[i] == kParkRatingHistoryUndefined)
|
||||
smallHistory[i] = RCT12ParkHistoryUndefined;
|
||||
else
|
||||
{
|
||||
|
||||
@@ -11,10 +11,10 @@ namespace OpenRCT2
|
||||
struct GameState_t;
|
||||
|
||||
// Current version that is saved.
|
||||
constexpr uint32_t PARK_FILE_CURRENT_VERSION = 37;
|
||||
constexpr uint32_t PARK_FILE_CURRENT_VERSION = 38;
|
||||
|
||||
// The minimum version that is forwards compatible with the current version.
|
||||
constexpr uint32_t PARK_FILE_MIN_VERSION = 33;
|
||||
constexpr uint32_t PARK_FILE_MIN_VERSION = 38;
|
||||
|
||||
// The minimum version that is backwards compatible with the current version.
|
||||
// If this is increased beyond 0, uncomment the checks in ParkFile.cpp and Context.cpp!
|
||||
@@ -29,6 +29,7 @@ namespace OpenRCT2
|
||||
constexpr uint16_t kBlockBrakeImprovementsVersion = 27;
|
||||
constexpr uint16_t kGigaCoasterInversions = 31;
|
||||
constexpr uint16_t kWoodenFlatToSteepVersion = 37;
|
||||
constexpr uint16_t k16BitParkHistoryVersion = 38;
|
||||
} // namespace OpenRCT2
|
||||
|
||||
class ParkFileExporter
|
||||
|
||||
Reference in New Issue
Block a user