diff options
author | Philipp Sehmisch <tmw@crushnet.org> | 2008-10-02 14:34:20 +0000 |
---|---|---|
committer | Philipp Sehmisch <tmw@crushnet.org> | 2008-10-02 14:34:20 +0000 |
commit | 72c678ca1fe7ca1401efaf59c321380b4bfc6ba2 (patch) | |
tree | 3e9edb421be655c668beb9ff76deb920c2122746 /src/engine.cpp | |
parent | 9bdb331a237170a8d17c6d2881561aa0a4bab810 (diff) | |
download | mana-72c678ca1fe7ca1401efaf59c321380b4bfc6ba2.tar.gz mana-72c678ca1fe7ca1401efaf59c321380b4bfc6ba2.tar.bz2 mana-72c678ca1fe7ca1401efaf59c321380b4bfc6ba2.tar.xz mana-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.cpp | 6 |
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); |