summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test-client/main.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/test-client/main.ts b/test-client/main.ts
index b0b492ce..a572614b 100644
--- a/test-client/main.ts
+++ b/test-client/main.ts
@@ -139,9 +139,10 @@ function packet(p: PacketC) {
case "position": {
const pl = players.get(p.player)!
const pos = { x: p.pos[0], y: p.pos[1] }
- const dist = length(sub_v2(pl.position, pos));
+ // const dist = length(sub_v2(pl.position, pos));a
// TODO this is actually not a good idea if latency is too high
- if (p.player == my_id && dist < 3) return; // we know better where we are
+ // if (p.player == my_id && dist < 3) return; // we know better where we are
+ if (p.player == my_id) return
pl.position.x = pos.x
pl.position.y = pos.y
pl.rot = p.rot