summaryrefslogtreecommitdiff
path: root/src/game-server/mapmanager.cpp
diff options
context:
space:
mode:
authorChuck Miller <chuck@miller-server.(none)>2008-12-06 01:09:44 -0500
committerChuck Miller <chuck@miller-server.(none)>2008-12-06 01:09:44 -0500
commita841518cd56f96171cbe7d0c80fd31470d84ab11 (patch)
tree4f5dd5f33a7157d2d43edbdeda2be68eeb411a22 /src/game-server/mapmanager.cpp
parent9bdfd39c3b7101f8175049336bff412c38adb2ba (diff)
downloadmanaserv-a841518cd56f96171cbe7d0c80fd31470d84ab11.tar.gz
manaserv-a841518cd56f96171cbe7d0c80fd31470d84ab11.tar.bz2
manaserv-a841518cd56f96171cbe7d0c80fd31470d84ab11.tar.xz
manaserv-a841518cd56f96171cbe7d0c80fd31470d84ab11.zip
Fixes map warp issues, and has a better starting location
Diffstat (limited to 'src/game-server/mapmanager.cpp')
-rw-r--r--src/game-server/mapmanager.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/game-server/mapmanager.cpp b/src/game-server/mapmanager.cpp
index 47a6a4a8..68372ed9 100644
--- a/src/game-server/mapmanager.cpp
+++ b/src/game-server/mapmanager.cpp
@@ -103,6 +103,17 @@ MapComposite *MapManager::getMap(int mapId)
return (i != maps.end()) ? i->second : NULL;
}
+MapComposite *MapManager::getMap(std::string const &mapName)
+{
+ Maps::iterator i;
+ for (i = maps.begin(); i != maps.end(); ++i)
+ {
+ if (i->second->getName() == mapName)
+ return i->second;
+ }
+ return NULL;
+}
+
void MapManager::raiseActive(int mapId)
{
Maps::iterator i = maps.find(mapId);