Skip to content

Commit 0b29e5e

Browse files
committed
Other "fixes"
1 parent 366b9e0 commit 0b29e5e

File tree

1 file changed

+3
-4
lines changed
  • Data/Base.rte/Scenes/Objects/Bunkers/BunkerSystems/Automovers/Controller

1 file changed

+3
-4
lines changed

Data/Base.rte/Scenes/Objects/Bunkers/BunkerSystems/Automovers/Controller/Controller.lua

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1587,11 +1587,10 @@ automoverActorFunctions.centreActorToClosestNodeIfMovingInAppropriateDirection =
15871587
local stop = false;
15881588
for pos in actor.MovePath do
15891589
local adjustedPos = pos;
1590-
adjustedPos[centeringAxis] = closestNode.Pos[centeringAxis];
1591-
table.insert(positionsToFixUp, adjustedPos);
1592-
if not directionConnectingArea:IsInside(pos) then
1593-
break;
1590+
if directionConnectingArea:IsInside(pos) then
1591+
adjustedPos[centeringAxis] = closestNode.Pos[centeringAxis];
15941592
end
1593+
table.insert(positionsToFixUp, adjustedPos);
15951594
end
15961595

15971596
-- Clear these points from our move path

0 commit comments

Comments
 (0)