Skip to content

Commit

Permalink
fixed flipped 2d grid
Browse files Browse the repository at this point in the history
  • Loading branch information
AustinEast committed Dec 11, 2019
1 parent 4c1e46b commit 959f7b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/grid/GridLayer.hx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class GridLayer extends Layer
else if (template.arrayMode == TWO)
{
data._contents = "grid2D";
data.grid2D = this.data;
data.grid2D = flip2dArray(this.data);
}
else throw "Invalid Tile Layer Array Mode: " + template.arrayMode;

Expand Down Expand Up @@ -68,7 +68,7 @@ class GridLayer extends Layer
}
else if (arrayMode == TWO)
{
this.data = data.grid2D;
this.data = flip2dArray(data.grid2D);
}
else throw "Invalid Tile Layer Array Mode: " + arrayMode;
// this.data = flip2dArray(this.data);
Expand Down

0 comments on commit 959f7b9

Please sign in to comment.