1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-16 03:23:15 +01:00

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

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

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;