1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-21 22:13:07 +01:00

Exclude peep animation objects in EditorRemoveUnusedObjects

This commit is contained in:
Aaron van Geffen
2024-12-29 21:04:41 +01:00
parent 0fb1fabc52
commit c0f846c2f5

View File

@@ -750,6 +750,10 @@ int32_t EditorRemoveUnusedObjects()
if (objectType == ObjectType::PeepNames)
continue;
// Avoid deleting peep animation objects, as it ensures we don't delete the last ones for a kind of peep.
if (objectType == ObjectType::PeepAnimations)
continue;
// Its hard to determine exactly if a scenery group is used, so do not remove these automatically.
if (objectType == ObjectType::SceneryGroup)
continue;