summaryrefslogtreecommitdiffstats
path: root/src/controller
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2018-11-05 22:41:38 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2018-11-05 22:41:38 +0100
commitf086908e087bbf29eaa2045f17ebf6de525023b9 (patch)
tree6f139309eeec292a06d09b2cfb3e81abcfda0fa5 /src/controller
parentae7674181e8dfae5ec0e691e59fc0b5c1ab8ddd3 (diff)
downloadrpgedit-f086908e087bbf29eaa2045f17ebf6de525023b9.tar
rpgedit-f086908e087bbf29eaa2045f17ebf6de525023b9.zip
controller/gamecontext: ignore weird projection points rather than stopping movement altogether
Diffstat (limited to 'src/controller')
-rw-r--r--src/controller/gamecontext.ts2
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;