aboutsummaryrefslogtreecommitdiff
path: root/features/dungeonMap/index.js
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-03-05 21:17:08 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-03-05 21:17:08 +0800
commit7ba09eb9ee619197849f3ed8de971e6bfab7d721 (patch)
treeaacc1e22caf9d36ed593e2b6aeef7bc19e652d2b /features/dungeonMap/index.js
parent4a1947673debcd858247698b2670d0c7a24f04ee (diff)
downloadSoopyV2-7ba09eb9ee619197849f3ed8de971e6bfab7d721.tar.gz
SoopyV2-7ba09eb9ee619197849f3ed8de971e6bfab7d721.tar.bz2
SoopyV2-7ba09eb9ee619197849f3ed8de971e6bfab7d721.zip
performance improvements + fix rare dungeon map breaking issue
Diffstat (limited to 'features/dungeonMap/index.js')
-rw-r--r--features/dungeonMap/index.js2
1 files changed, 1 insertions, 1 deletions
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){