aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorHolden Rohrer <hr@hrhr.dev>2020-02-22 22:56:41 +0000
committerHolden Rohrer <hr@hrhr.dev>2020-02-23 22:39:22 +0000
commit5912a13ccb48313da191741931409a11b217d306 (patch)
tree15ac7a8f5652b117ccfefb6ff4d1ba96f7605a17 /utils
parent9770f779663ead9fad3ec79e3aff4becb1b44dee (diff)
removed global variable pollution
Diffstat (limited to 'utils')
-rw-r--r--utils/raster.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/raster.js b/utils/raster.js
index 1e17838..c1a204b 100644
--- a/utils/raster.js
+++ b/utils/raster.js
@@ -6,7 +6,7 @@ const vec = require('./vec');
module.exports = function(space){
// just use .subsection
let tiles = {};
- dim = ms(space).map(coord => vec.charToTile(coord));
+ 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]));