diff options
Diffstat (limited to 'src/game.cpp')
-rw-r--r-- | src/game.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/game.cpp b/src/game.cpp index 62f15abe..e330be4c 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -144,6 +144,7 @@ void do_init() pathDir.insert(pathDir.size(), ".tmx"); tiledMap = Map::load(pathDir); + if (!tiledMap) { // Try .tmx.gz map file @@ -833,6 +834,7 @@ void do_parse() { strncat(map_path, RFIFOP(2), 497 - strlen(map_path)); logger.log("Warping to %s (%d, %d)\n", map_path, RFIFOW(18), RFIFOW(20)); + strcpy(strrchr(map_path, '.') + 1, "tmx.gz"); if (tiledMap) delete tiledMap; tiledMap = Map::load(map_path); |