diff options
author | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-03-05 21:17:08 +0800 |
---|---|---|
committer | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-03-05 21:17:08 +0800 |
commit | 7ba09eb9ee619197849f3ed8de971e6bfab7d721 (patch) | |
tree | aacc1e22caf9d36ed593e2b6aeef7bc19e652d2b /features/dungeonMap/index.js | |
parent | 4a1947673debcd858247698b2670d0c7a24f04ee (diff) | |
download | SoopyV2-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.js | 2 |
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){ |