diff options
author | Holden Rohrer <hr@hrhr.dev> | 2020-02-22 22:56:41 +0000 |
---|---|---|
committer | Holden Rohrer <hr@hrhr.dev> | 2020-02-23 22:39:22 +0000 |
commit | 5912a13ccb48313da191741931409a11b217d306 (patch) | |
tree | 15ac7a8f5652b117ccfefb6ff4d1ba96f7605a17 /space.js | |
parent | 9770f779663ead9fad3ec79e3aff4becb1b44dee (diff) |
removed global variable pollution
Diffstat (limited to 'space.js')
-rw-r--r-- | space.js | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -39,7 +39,7 @@ function Space(){ let cont = chop(tile.content,16); let read = 0; //line of cont to read for (let line=0; line<8; line++){ - curline = line+8*tilerow; + let curline = line+8*tilerow; if (conform && incl.includes(line)){ for (let i=0; i<16; i++) this.data[curline].push(' '); } else { @@ -85,6 +85,7 @@ function Space(){ this.comb = function(other, func){ // other must have a valid .loc. If this.loc null, treated as offset if (! other.loc) throw "The secondary space must have a valid .loc" + let offset; if (this.loc.length == 0) { offset = [0, 0]; this.loc = other.loc; |