Fixed movement stopping between tiles.

WorldChunkRefactoring
Martin Felis 2023-05-03 12:01:02 +02:00
parent f7dca6ae20
commit 1693b63730
1 changed files with 2 additions and 1 deletions

View File

@ -126,9 +126,10 @@ public class NavigationComponent : Node
{ {
_pathWorldNavigationPoints.RemoveAt(_pathWorldNavigationPoints.Count - 1); _pathWorldNavigationPoints.RemoveAt(_pathWorldNavigationPoints.Count - 1);
} }
_pathWorldNavigationPoints.Add(new NavigationPoint(toPositionWorld));
} }
_pathWorldNavigationPoints.Add(new NavigationPoint(toPositionWorld));
UpdateCurrentGoal(); UpdateCurrentGoal();
} }