mirror of
https://github.com/netbymatt/ws4kp.git
synced 2026-04-18 09:39:30 -07:00
radar expanded, to do fix number of tiles
This commit is contained in:
@@ -46,8 +46,8 @@ const setTiles = (data) => {
|
||||
// determine which tiles are used
|
||||
const usedTiles = [
|
||||
true,
|
||||
TILE_SIZE.x - tileShift.x < RADAR_FINAL_SIZE.width,
|
||||
TILE_SIZE.y - tileShift.y < RADAR_FINAL_SIZE.width,
|
||||
TILE_SIZE.x - tileShift.x < RADAR_FINAL_SIZE().width,
|
||||
TILE_SIZE.y - tileShift.y < RADAR_FINAL_SIZE().width,
|
||||
];
|
||||
// if we need t[1] and t[2] then we also need t[3]
|
||||
usedTiles.push(usedTiles[1] && usedTiles[2]);
|
||||
|
||||
Reference in New Issue
Block a user