From fc3c62f2d68851b89b345a7aa7852d4a22f848dc Mon Sep 17 00:00:00 2001 From: Blue Sans Douze Date: Sat, 23 Jan 2010 18:56:21 +0100 Subject: Chaning the method name Map::getMapId() to map::getFilename() --- src/gui/minimap.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/gui/minimap.cpp') diff --git a/src/gui/minimap.cpp b/src/gui/minimap.cpp index 539bfbaa..ef86dfd4 100644 --- a/src/gui/minimap.cpp +++ b/src/gui/minimap.cpp @@ -97,15 +97,17 @@ void Minimap::setMap(Map *map) if (map) { - std::string tempname = "graphics/minimaps/"+(*map->getMapId())+".png"; - + std::string tempname = + "graphics/minimaps/"+(*map->getFilename())+".png"; ResourceManager *resman = ResourceManager::getInstance(); + minimapName = map->getProperty("minimap"); + if (minimapName.empty() && resman->exists(tempname)) { minimapName = tempname; } - std::cout << "Minimap name : " << minimapName << std::endl; + mMapImage = resman->getImage(minimapName); } -- cgit v1.2.3-70-g09d2