summaryrefslogtreecommitdiff
path: root/src/being.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-11-02 03:02:25 +0300
committerAndrei Karas <akaras@inbox.ru>2011-11-02 03:02:25 +0300
commit17631dacf2cb8ebc3acc1dae9df0729a80a150d9 (patch)
treef05dce9d2cedcf3690f789e7697658608bd83436 /src/being.cpp
parent30a3e0b6d4b773e2d803730d9815c4d0eab3ff81 (diff)
downloadmv-17631dacf2cb8ebc3acc1dae9df0729a80a150d9.tar.gz
mv-17631dacf2cb8ebc3acc1dae9df0729a80a150d9.tar.bz2
mv-17631dacf2cb8ebc3acc1dae9df0729a80a150d9.tar.xz
mv-17631dacf2cb8ebc3acc1dae9df0729a80a150d9.zip
Add enemy relation.
Diffstat (limited to 'src/being.cpp')
-rw-r--r--src/being.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/being.cpp b/src/being.cpp
index 5eac242fd..5e8d68041 100644
--- a/src/being.cpp
+++ b/src/being.cpp
@@ -1631,7 +1631,9 @@ void Being::updateColors()
mNameColor = &userPalette->getColor(UserPalette::DISREGARDED);
}
else if (player_relations.getRelation(mName) ==
- PlayerRelation::IGNORED)
+ PlayerRelation::IGNORED
+ || player_relations.getRelation(mName) ==
+ PlayerRelation::ENEMY2)
{
mNameColor = &userPalette->getColor(UserPalette::IGNORED);
}