summaryrefslogtreecommitdiff
path: root/src/engine.cpp
diff options
context:
space:
mode:
authorIra Rice <irarice@gmail.com>2008-10-13 17:44:46 +0000
committerIra Rice <irarice@gmail.com>2008-10-13 17:44:46 +0000
commitfc8760599dfd730d416bb2c646e17c5dd7dd132e (patch)
tree412419e83e111a9c9cb3ed6247375b1db20164b9 /src/engine.cpp
parent8003fcc9f42a42170a16bdf976bb73fdf34a761e (diff)
downloadmana-fc8760599dfd730d416bb2c646e17c5dd7dd132e.tar.gz
mana-fc8760599dfd730d416bb2c646e17c5dd7dd132e.tar.bz2
mana-fc8760599dfd730d416bb2c646e17c5dd7dd132e.tar.xz
mana-fc8760599dfd730d416bb2c646e17c5dd7dd132e.zip
Minor fix for a situation thatwe shouldn't ever need to encounter, but
is nice to have anyways.
Diffstat (limited to 'src/engine.cpp')
-rw-r--r--src/engine.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/engine.cpp b/src/engine.cpp
index e4361f96..c8fee995 100644
--- a/src/engine.cpp
+++ b/src/engine.cpp
@@ -113,6 +113,10 @@ void Engine::changeMap(const std::string &mapPath)
{
minimap->setProportion(atof(newMap->getProperty("minimapproportion").c_str()));
}
+ else
+ {
+ minimap->setProportion(0.5);
+ }
}
minimap->setMapImage(mapImage);
beingManager->setMap(newMap);