From 7ba09eb9ee619197849f3ed8de971e6bfab7d721 Mon Sep 17 00:00:00 2001 From: Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> Date: Sat, 5 Mar 2022 21:17:08 +0800 Subject: performance improvements + fix rare dungeon map breaking issue --- features/dungeonMap/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'features/dungeonMap/index.js') diff --git a/features/dungeonMap/index.js b/features/dungeonMap/index.js index 9dccf92..05bd25a 100644 --- a/features/dungeonMap/index.js +++ b/features/dungeonMap/index.js @@ -456,7 +456,7 @@ class DungeonMap extends Feature { } }) - let [tx, ty] = [x+roomWidth/2, y+roomWidth/2] + let [tx, ty] = [~~(x+roomWidth/2), ~~(y+roomWidth/2)] if(bytes[tx+ty*128] === 66){ -- cgit