From 8426914c0ef7de2290220c0f2cd7f2b8f437be60 Mon Sep 17 00:00:00 2001 From: duncanspumpkin Date: Mon, 29 Nov 2021 07:47:46 +0000 Subject: [PATCH] Make identifier fixing more conservative. Bump park version It is still possible to make a park with the legacy names in a version 7 as we don't fail to start the game with the old identifiers loaded --- src/openrct2/park/ParkFile.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/openrct2/park/ParkFile.cpp b/src/openrct2/park/ParkFile.cpp index 06500dbdf1..e90efff4e5 100644 --- a/src/openrct2/park/ParkFile.cpp +++ b/src/openrct2/park/ParkFile.cpp @@ -66,10 +66,10 @@ using namespace OpenRCT2; namespace OpenRCT2 { // Current version that is saved. - constexpr uint32_t PARK_FILE_CURRENT_VERSION = 0x7; + constexpr uint32_t PARK_FILE_CURRENT_VERSION = 0x8; // The minimum version that is forwards compatible with the current version. - constexpr uint32_t PARK_FILE_MIN_VERSION = 0x7; + constexpr uint32_t PARK_FILE_MIN_VERSION = 0x8; namespace ParkFileChunkType { @@ -300,7 +300,7 @@ namespace OpenRCT2 ObjectEntryDescriptor desc; desc.Type = objectType; auto identifier = cs.Read(); - if (version <= 2) + if (version <= 7) { auto newIdentifier = MapToNewObjectIdentifier(identifier); if (!newIdentifier.empty())