From c0259002a1ac7529212492a1c942a6c901ccfa96 Mon Sep 17 00:00:00 2001 From: Yohann Ferreira Date: Sat, 17 Sep 2005 00:19:16 +0000 Subject: Only shows the minimap window if there's an minimap to the current map. --- ChangeLog | 2 ++ src/gui/minimap.cpp | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index d5598b49..ff3d301a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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 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; } } -- cgit v1.2.3-70-g09d2