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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user