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.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/game-server/mapmanager.cpp b/src/game-server/mapmanager.cpp
index 1bceb8e2..dcb91363 100644
--- a/src/game-server/mapmanager.cpp
+++ b/src/game-server/mapmanager.cpp
@@ -88,7 +88,7 @@ MapManager::~MapManager()
}
}
-Map *MapManager::getMap(int mapId)
+Map* MapManager::getMap(int mapId)
{
Maps::iterator i = maps.find(mapId);
assert(i != maps.end() && i->second.isActive);
@@ -99,7 +99,8 @@ Map *MapManager::getMap(int mapId)
map = MapReader::readMap("maps/" + file);
if (!map)
{
- LOG_ERROR("Unable to load map \"" << file << "\" (id " << mapId << ")");
+ LOG_ERROR("Unable to load map \"" << file << "\" (id "
+ << mapId << ")");
return NULL;
}
LOG_INFO("Loaded map \"" << file << "\" (id " << mapId << ")");
@@ -119,7 +120,8 @@ void MapManager::raiseActive(int mapId)
Maps::iterator i = maps.find(mapId);
assert(i != maps.end());
i->second.isActive = true;
- LOG_INFO("Activating map \"" << i->second.fileName << "\" (id " << i->first << ")");
+ LOG_INFO("Activating map \"" << i->second.fileName << "\" (id "
+ << i->first << ")");
}
bool MapManager::isActive(int mapId) const