summaryrefslogtreecommitdiff
path: root/src/engine.cpp
diff options
context:
space:
mode:
authorPhilipp Sehmisch <tmw@crushnet.org>2008-10-02 14:34:20 +0000
committerPhilipp Sehmisch <tmw@crushnet.org>2008-10-02 14:34:20 +0000
commit72c678ca1fe7ca1401efaf59c321380b4bfc6ba2 (patch)
tree3e9edb421be655c668beb9ff76deb920c2122746 /src/engine.cpp
parent9bdb331a237170a8d17c6d2881561aa0a4bab810 (diff)
downloadmana-client-72c678ca1fe7ca1401efaf59c321380b4bfc6ba2.tar.gz
mana-client-72c678ca1fe7ca1401efaf59c321380b4bfc6ba2.tar.bz2
mana-client-72c678ca1fe7ca1401efaf59c321380b4bfc6ba2.tar.xz
mana-client-72c678ca1fe7ca1401efaf59c321380b4bfc6ba2.zip
The "name" property of the map is now used as caption of the minimap window when it exists.
Diffstat (limited to 'src/engine.cpp')
-rw-r--r--src/engine.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/engine.cpp b/src/engine.cpp
index b53608be..67479a27 100644
--- a/src/engine.cpp
+++ b/src/engine.cpp
@@ -97,6 +97,12 @@ void Engine::changeMap(const std::string &mapPath)
{
mapImage = resman->getImage(newMap->getProperty("minimap"));
}
+ if (newMap->hasProperty("name"))
+ {
+ minimap->setCaption(newMap->getProperty("name"));
+ } else {
+ minimap->setCaption("Map");
+ }
minimap->setMapImage(mapImage);
beingManager->setMap(newMap);
particleEngine->setMap(newMap);