summaryrefslogtreecommitdiff
path: root/src/gui/minimap.cpp
diff options
context:
space:
mode:
authorErik Schilling <ablu.erikschilling@googlemail.com>2012-01-06 20:58:18 +0800
committerErik Schilling <ablu.erikschilling@googlemail.com>2012-01-07 00:25:09 +0800
commita4cdbe266f29d14c7e78409690da8de44f43a02f (patch)
tree734ead7bc806f6348b095f4647cb0d9b307fc817 /src/gui/minimap.cpp
parent7a9c5623cc4d69616321c87a7eeb0876694acafe (diff)
downloadmana-a4cdbe266f29d14c7e78409690da8de44f43a02f.tar.gz
mana-a4cdbe266f29d14c7e78409690da8de44f43a02f.tar.bz2
mana-a4cdbe266f29d14c7e78409690da8de44f43a02f.tar.xz
mana-a4cdbe266f29d14c7e78409690da8de44f43a02f.zip
Fixed minimap showing the right colors for npcs and monsters
Actually Bertram explained the fix in the bugtracker and I only did what he said there. Resolves: Mana-mantis #444. Reviewed-by: Bertram.
Diffstat (limited to 'src/gui/minimap.cpp')
-rw-r--r--src/gui/minimap.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/minimap.cpp b/src/gui/minimap.cpp
index 7ad034e4..6ee416f5 100644
--- a/src/gui/minimap.cpp
+++ b/src/gui/minimap.cpp
@@ -217,11 +217,11 @@ void Minimap::draw(gcn::Graphics *graphics)
switch (being->getType())
{
case ActorSprite::MONSTER:
- graphics->setColor(userPalette->getColor(UserPalette::MONSTER));
+ type = UserPalette::MONSTER;
break;
case ActorSprite::NPC:
- graphics->setColor(userPalette->getColor(UserPalette::NPC));
+ type = UserPalette::NPC;
break;
default: