@@ -1071,7 +1071,7 @@ automoverActorFunctions.setupActorWaypointData = function(self, actorData)
1071
1071
1072
1072
waypointData .previousNode = self :findClosestNode (actor .Pos , nil , true , true , false , nil );
1073
1073
if not waypointData .previousNode then
1074
- self :removeActorFromAutomoverTable ( actor );
1074
+ self :setActorMovementModeToLeaveAutomovers ( actorData );
1075
1075
return ;
1076
1076
end
1077
1077
local targetPosition = waypointData .movableObjectTarget ~= nil and waypointData .movableObjectTarget .Pos or waypointData .sceneTargets [1 ];
@@ -1321,9 +1321,10 @@ automoverActorFunctions.handleActorThatHasReachedItsEndNode = function(self, act
1321
1321
local distanceFromActorToFirstExitPathPosition = SceneMan :ShortestDistance (waypointData .exitPath [1 ], actor .Pos , self .checkWrapping );
1322
1322
if distanceFromActorToFirstExitPathPosition :MagnitudeIsLessThan (20 ) then
1323
1323
table.remove (waypointData .exitPath , 1 );
1324
- local distanceFromActorToFirstExitPathPosition = SceneMan :ShortestDistance (waypointData .exitPath [1 ], actor .Pos , self .checkWrapping );
1324
+ if # waypointData .exitPath > 0 then
1325
+ local distanceFromActorToFirstExitPathPosition = SceneMan :ShortestDistance (waypointData .exitPath [1 ], actor .Pos , self .checkWrapping );
1326
+ end
1325
1327
end
1326
- PrimitiveMan :DrawCircleFillPrimitive (0 , waypointData .exitPath [1 ], 10 , 7 )
1327
1328
actorData .direction = getDirectionForDistanceLargerAxis (distanceFromActorToFirstExitPathPosition , 0 );
1328
1329
1329
1330
local endNodeData = teamNodeTable [waypointData .endNode ];
0 commit comments