summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog2
-rw-r--r--src/gui/minimap.cpp6
2 files changed, 8 insertions, 0 deletions
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 <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;
}
}