summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Dombrowski <stefan@uni-bonn.de>2012-01-13 13:23:29 +0100
committerYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2012-01-15 00:43:24 +0100
commit76c4c74f1ea3e03d4617de6504c3cb72572f31f4 (patch)
tree473acaba1afb7912f762ed0f09a16b6e615b7fc9
parent04badb46717681879fb68430a49afb04e26671ef (diff)
downloadmana-76c4c74f1ea3e03d4617de6504c3cb72572f31f4.tar.gz
mana-76c4c74f1ea3e03d4617de6504c3cb72572f31f4.tar.bz2
mana-76c4c74f1ea3e03d4617de6504c3cb72572f31f4.tar.xz
mana-76c4c74f1ea3e03d4617de6504c3cb72572f31f4.zip
Remove dead beings from the minimap
Reviewed-by: Bertram
-rw-r--r--src/gui/minimap.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/minimap.cpp b/src/gui/minimap.cpp
index ff282164..cdc7583e 100644
--- a/src/gui/minimap.cpp
+++ b/src/gui/minimap.cpp
@@ -199,6 +199,10 @@ void Minimap::draw(gcn::Graphics *graphics)
continue;
const Being *being = static_cast<Being*>(*it);
+
+ if (!being->isAlive())
+ continue;
+
int dotSize = 2;
int type = UserPalette::PC;