summaryrefslogtreecommitdiff
path: root/src/engine.cpp
diff options
context:
space:
mode:
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 42054ffb..e4361f96 100644
--- a/src/engine.cpp
+++ b/src/engine.cpp
@@ -107,6 +107,12 @@ void Engine::changeMap(const std::string &mapPath)
minimap->setCaption("Unknown");
logger->log("WARNING: Map file '%s' defines a minimap image but does not define a 'mapname' property", map_path.c_str());
}
+ // How many pixels equal one tile. .5 (which is the TMW default) is 2 tiles to a pixel,
+ // while 1 is 1 tile to 1 pixel
+ if (newMap->hasProperty("minimapproportion"))
+ {
+ minimap->setProportion(atof(newMap->getProperty("minimapproportion").c_str()));
+ }
}
minimap->setMapImage(mapImage);
beingManager->setMap(newMap);