summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/engine.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/engine.cpp b/src/engine.cpp
index 74e11336..8382f775 100644
--- a/src/engine.cpp
+++ b/src/engine.cpp
@@ -98,6 +98,10 @@ void Engine::changeMap(const std::string &mapPath)
{
minimap->setCaption(newMap->getProperty("mapname"));
}
+ else if (newMap->hasProperty("name"))
+ {
+ minimap->setCaption(newMap->getProperty("name"));
+ }
else
{
minimap->setCaption("Unknown");
@@ -114,12 +118,6 @@ void Engine::changeMap(const std::string &mapPath)
minimap->setProportion(0.5);
}
}
- if (newMap->hasProperty("name"))
- {
- minimap->setCaption(newMap->getProperty("name"));
- } else {
- minimap->setCaption("Map");
- }
minimap->setMapImage(mapImage);
beingManager->setMap(newMap);
particleEngine->setMap(newMap);