diff options
Diffstat (limited to 'src/controller')
-rw-r--r-- | src/controller/gamecontext.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/controller/gamecontext.ts b/src/controller/gamecontext.ts index 4ae449a..f0a3346 100644 --- a/src/controller/gamecontext.ts +++ b/src/controller/gamecontext.ts @@ -115,7 +115,7 @@ export class GameContext { if (!vec2.exactEquals(dest, dest2)) { // Ensure termination if (vec2.squaredDistance(this.entityPos, dest2) >= vec2.squaredDistance(this.entityPos, dest)) - return; + continue; vec2.copy(dest, dest2); rescan = true; |