Skip to content

Commit

Permalink
Outputs empty maps instead of skipping them
Browse files Browse the repository at this point in the history
  • Loading branch information
dip000 committed Apr 24, 2022
1 parent e1c1b35 commit 7d4d1c5
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion MapBuilderForWeb/MultimapMechanics.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,16 @@
for(var c=0; c<gridCols; c++){

//Skip empty maps
if(outputData[r] == null) continue;
//if(outputData[r] == null) continue;

//Create empty maps
if(outputData[r] == null){
outputData[r] = new Array();
}
if(outputData[r][c] == null){
outputData[r][c] = new OutputData();
}

//Coordinates are not formated, so extract, reformat and reassign
let formatedCoordinates = new Vector2Array( outputData[r][c].positionsX, outputData[r][c].positionsY );

Expand Down

0 comments on commit 7d4d1c5

Please sign in to comment.