diff --git a/src/openrct2/park/ParkFile.cpp b/src/openrct2/park/ParkFile.cpp index 7e9e3f8747..f1564f05dc 100644 --- a/src/openrct2/park/ParkFile.cpp +++ b/src/openrct2/park/ParkFile.cpp @@ -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( @@ -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 { diff --git a/src/openrct2/park/ParkFile.h b/src/openrct2/park/ParkFile.h index 30e005c9b2..602e508085 100644 --- a/src/openrct2/park/ParkFile.h +++ b/src/openrct2/park/ParkFile.h @@ -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