From 1693b63730eaafffecff38fe9bdd535bef3f32a0 Mon Sep 17 00:00:00 2001 From: Martin Felis Date: Wed, 3 May 2023 12:01:02 +0200 Subject: [PATCH] Fixed movement stopping between tiles. --- components/NavigationComponent.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/NavigationComponent.cs b/components/NavigationComponent.cs index 64655ba..b068d3a 100644 --- a/components/NavigationComponent.cs +++ b/components/NavigationComponent.cs @@ -126,9 +126,10 @@ public class NavigationComponent : Node { _pathWorldNavigationPoints.RemoveAt(_pathWorldNavigationPoints.Count - 1); } - _pathWorldNavigationPoints.Add(new NavigationPoint(toPositionWorld)); } + _pathWorldNavigationPoints.Add(new NavigationPoint(toPositionWorld)); + UpdateCurrentGoal(); }