From 959f7b9f37c7309a532c47adf7bfd8585c8eaa42 Mon Sep 17 00:00:00 2001 From: austin Date: Tue, 10 Dec 2019 23:21:09 -0500 Subject: [PATCH] fixed flipped 2d grid --- src/modules/grid/GridLayer.hx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/grid/GridLayer.hx b/src/modules/grid/GridLayer.hx index 5f7e6320..cd80412f 100644 --- a/src/modules/grid/GridLayer.hx +++ b/src/modules/grid/GridLayer.hx @@ -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; @@ -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);