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 /src/gui | |
parent | e454dcd9bc48c884215bb8144f43a10960b5f713 (diff) | |
download | mana-c0259002a1ac7529212492a1c942a6c901ccfa96.tar.gz mana-c0259002a1ac7529212492a1c942a6c901ccfa96.tar.bz2 mana-c0259002a1ac7529212492a1c942a6c901ccfa96.tar.xz mana-c0259002a1ac7529212492a1c942a6c901ccfa96.zip |
Only shows the minimap window if there's an minimap to the current map.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/minimap.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
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; } } |