mirror of https://github.com/OpenRCT2/OpenRCT2.git
Merge pull request #19664 from Gymnasiast/fix/19652
Fix #19652: remove_unused_objects removes scenery groups
This commit is contained in:
commit
a982d152ec
|
@ -679,6 +679,10 @@ int32_t EditorRemoveUnusedObjects()
|
||||||
if (objectType == ObjectType::ParkEntrance || objectType == ObjectType::Water)
|
if (objectType == ObjectType::ParkEntrance || objectType == ObjectType::Water)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
// It’s hard to determine exactly if a scenery group is used, so do not remove these automatically.
|
||||||
|
if (objectType == ObjectType::SceneryGroup)
|
||||||
|
continue;
|
||||||
|
|
||||||
_numSelectedObjectsForType[EnumValue(objectType)]--;
|
_numSelectedObjectsForType[EnumValue(objectType)]--;
|
||||||
_objectSelectionFlags[i] &= ~ObjectSelectionFlags::Selected;
|
_objectSelectionFlags[i] &= ~ObjectSelectionFlags::Selected;
|
||||||
numUnselectedObjects++;
|
numUnselectedObjects++;
|
||||||
|
|
Loading…
Reference in New Issue