controller/gamecontext: ignore weird projection points rather than stopping movement altogether
This commit is contained in:
parent
ae7674181e
commit
f086908e08
1 changed files with 1 additions and 1 deletions
|
@ -115,7 +115,7 @@ export class GameContext {
|
||||||
if (!vec2.exactEquals(dest, dest2)) {
|
if (!vec2.exactEquals(dest, dest2)) {
|
||||||
// Ensure termination
|
// Ensure termination
|
||||||
if (vec2.squaredDistance(this.entityPos, dest2) >= vec2.squaredDistance(this.entityPos, dest))
|
if (vec2.squaredDistance(this.entityPos, dest2) >= vec2.squaredDistance(this.entityPos, dest))
|
||||||
return;
|
continue;
|
||||||
|
|
||||||
vec2.copy(dest, dest2);
|
vec2.copy(dest, dest2);
|
||||||
rescan = true;
|
rescan = true;
|
||||||
|
|
Reference in a new issue