summaryrefslogtreecommitdiff
path: root/src/game-server/mapmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game-server/mapmanager.cpp')
-rw-r--r--src/game-server/mapmanager.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/game-server/mapmanager.cpp b/src/game-server/mapmanager.cpp
index ab0d0fec..713bd2cf 100644
--- a/src/game-server/mapmanager.cpp
+++ b/src/game-server/mapmanager.cpp
@@ -116,8 +116,13 @@ void MapManager::raiseActive(int mapId)
return;
}
- std::string const &file = composite->getName();
- MapReader::readMap("maps/" + file, composite);
+ std::string file = "maps/" + composite->getName() + ".tmx";
+ ResourceManager *resman = ResourceManager::getInstance();
+ if (!resman->exists(file))
+ {
+ file += ".gz";
+ }
+ MapReader::readMap(file, composite);
LOG_INFO("Activated map \"" << file << "\" (id " << mapId << ")");
// Add some testing stuff