Add checks to ensure an animation object is selected for each peep type

This commit is contained in:
Aaron van Geffen committed 2024-12-07 13:40:30 +01:00
1 parent 42adf84723
commit 7efe73f6ac
10 files changed
+65 -2

No files matched your search

+4 -1
View File
@@ -76,7 +76,7 @@ class ObjectFileIndex final : public FileIndex<ObjectRepositoryItem>
{
private:
static constexpr uint32_t MAGIC_NUMBER = 0x5844494F; // OIDX
static constexpr uint16_t VERSION = 29;
static constexpr uint16_t VERSION = 30;
static constexpr auto PATTERN = "*.dat;*.pob;*.json;*.parkobj";
IObjectRepository& _objectRepository;
@@ -160,6 +160,9 @@ protected:
case ObjectType::FootpathSurface:
ds << item.FootpathSurfaceInfo.Flags;
break;
case ObjectType::PeepAnimations:
ds << item.PeepAnimationsInfo.PeepType;
break;
default:
// Switch processes only ObjectType::Ride and ObjectType::SceneryGroup
break;