diff options
author | Blue Sans Douze <bluesansdouze@gmail.com> | 2010-01-23 18:56:21 +0100 |
---|---|---|
committer | Blue Sans Douze <bluesansdouze@gmail.com> | 2010-01-23 18:56:21 +0100 |
commit | fc3c62f2d68851b89b345a7aa7852d4a22f848dc (patch) | |
tree | c39634989cb0f7a637daaac642f728fe513133cc /src/gui/minimap.cpp | |
parent | 943166059f5e0b7403b00f5d5fc19bd72c706657 (diff) | |
download | mana-client-fc3c62f2d68851b89b345a7aa7852d4a22f848dc.tar.gz mana-client-fc3c62f2d68851b89b345a7aa7852d4a22f848dc.tar.bz2 mana-client-fc3c62f2d68851b89b345a7aa7852d4a22f848dc.tar.xz mana-client-fc3c62f2d68851b89b345a7aa7852d4a22f848dc.zip |
Chaning the method name Map::getMapId() to map::getFilename()
Diffstat (limited to 'src/gui/minimap.cpp')
-rw-r--r-- | src/gui/minimap.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
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); } |