diff options
author | Yohann Ferreira <bertram@cegetel.net> | 2005-09-17 00:19:16 +0000 |
---|---|---|
committer | Yohann Ferreira <bertram@cegetel.net> | 2005-09-17 00:19:16 +0000 |
commit | c0259002a1ac7529212492a1c942a6c901ccfa96 (patch) | |
tree | e93ad50c8c9eb0c6a7cb010815c9e6e054b978e2 | |
parent | e454dcd9bc48c884215bb8144f43a10960b5f713 (diff) | |
download | mana-client-c0259002a1ac7529212492a1c942a6c901ccfa96.tar.gz mana-client-c0259002a1ac7529212492a1c942a6c901ccfa96.tar.bz2 mana-client-c0259002a1ac7529212492a1c942a6c901ccfa96.tar.xz mana-client-c0259002a1ac7529212492a1c942a6c901ccfa96.zip |
Only shows the minimap window if there's an minimap to the current map.
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | src/gui/minimap.cpp | 6 |
2 files changed, 8 insertions, 0 deletions
@@ -7,6 +7,8 @@ src/gui/char_select.cpp, src/gui/ministatus.cpp, src/gui/skill.cpp, src/gui/status.cpp, src/gui/status.h : Now the derived stats values are got from the server, and then, are correct ones. + * src/gui/minimap.cpp : Only shows the Minimap Window if there's + actually a minimap to the current map. 2005-09-16 Bjørn Lindeijer <bjorn@lindeijer.nl> diff --git a/src/gui/minimap.cpp b/src/gui/minimap.cpp index 6e8d8a04..a6d1ef6c 100644 --- a/src/gui/minimap.cpp +++ b/src/gui/minimap.cpp @@ -60,11 +60,17 @@ void Minimap::setMap(Map *map) if (mMapImage != NULL) { + setVisible(true); mMapImage->setAlpha(0.7); } + else + { + setVisible(false); + } } else { + setVisible(false); mMapImage = NULL; } } |