From dc713281d84a30a66561d1ddc953d75c8813a076 Mon Sep 17 00:00:00 2001 From: biglyderv Date: Mon, 25 Nov 2024 14:14:20 -0500 Subject: [PATCH] sdf --- common/player.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/player.js b/common/player.js index 114d762..4d57fc7 100644 --- a/common/player.js +++ b/common/player.js @@ -1,4 +1,4 @@ -const crypto = (typeof window === 'undefined') ? await import('node:crypto') : crypto; +let crypto = (typeof window === 'undefined') ? await import('node:crypto') : crypto; function distF(ent, target) { return ((ent.pos.x - target.pos.x) ** 2) + ((ent.pos.y - target.pos.y) ** 2)