Skip to content

Commit 5fb92a0

Browse files
committed
Made it so scenes place anything in bunker systems even if they're not set to place units
More specifically, fix automover controller in grasslands mining post ini not being placed
1 parent c043810 commit 5fb92a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Entities/Scene.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,7 @@ int Scene::LoadData(bool placeObjects, bool initPathfinding, bool placeUnits)
667667
{
668668
// PASSING OWNERSHIP INTO the Add* ones - we are clearing out this list!
669669
if (Actor *actor = dynamic_cast<Actor *>(pMO)) {
670-
bool shouldPlace = placeUnits || dynamic_cast<ADoor *>(actor);
670+
bool shouldPlace = placeUnits || actor->IsInGroup("Bunker Systems");
671671

672672
// Because we don't save/load all data yet and do a bit of a hack with scene loading, we can potentially save a dead actor that still technically exists.
673673
// If we find one of these, just skip them!

0 commit comments

Comments
 (0)