diff options
-rw-r--r-- | utils/raster.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/raster.js b/utils/raster.js index c1a204b..c464de6 100644 --- a/utils/raster.js +++ b/utils/raster.js @@ -8,8 +8,8 @@ module.exports = function(space){ let tiles = {}; let dim = ms(space).map(coord => vec.charToTile(coord)); for (let y=dim[0][0]; y<=dim[0][1]; y++) for (let x=dim[1][0]; x<=dim[1][1]; x++){ - let tile = tileToChar([y,x]); - tiles[tile] = space.subsection(tile, vec.add(tile, [8,16])); + let tile = [y,x]; + tiles[tile] = space.subsection([tile, vec.add(tile, [8,16])]); } return tiles } |