From 229e7471ef86f52c6aa3a12f8064ce4b57278a40 Mon Sep 17 00:00:00 2001 From: HyperOnion <> Date: Sat, 24 Jun 2023 17:35:27 +0200 Subject: [PATCH] fix unnoticeable bug in world creation code. --- js/world.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/world.mjs b/js/world.mjs index 95349f3..fd7b180 100644 --- a/js/world.mjs +++ b/js/world.mjs @@ -7,7 +7,7 @@ export const CENTER = Math.floor(BOX_SIZE / 2); function create_world (size) { return { - tiles: Array(BOX_SIZE).fill(0).map(_ => Array(BOX_SIZE).fill(0)), + tiles: Array(size).fill(0).map(_ => Array(size).fill(0)), }; } const world = create_world(BOX_SIZE);