fixed bug where non square shaped maps wouldn't load

This commit is contained in:
Kjistóf 2016-05-14 16:59:39 +02:00
parent 23271cc086
commit 9e81e7cb3d

View File

@ -59,7 +59,7 @@ public class Dungeon {
mapWidth = width; // remember this value mapWidth = width; // remember this value
mapHeight = height; mapHeight = height;
Tile[][] dungeon = new Tile[width][height]; Tile[][] dungeon = new Tile[height][width];
String line; String line;
Gate tempgate = new Gate(); Gate tempgate = new Gate();