summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/xom.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-03-27 14:46:10 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-03-27 14:46:10 +0000
commitc8fe352afa5837de5f7afba5316f0f30ba274a5f (patch)
treea84ee5014fe63a8b3d8670abc193f19258353e66 /crawl-ref/source/xom.cc
parent0170380fc1cb73405bc5825a29b044c0ae841057 (diff)
downloadcrawl-ref-c8fe352afa5837de5f7afba5316f0f30ba274a5f.tar.gz
crawl-ref-c8fe352afa5837de5f7afba5316f0f30ba274a5f.zip
Clean it up a bit more.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3900 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/xom.cc')
-rw-r--r--crawl-ref/source/xom.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/xom.cc b/crawl-ref/source/xom.cc
index f1061bc8de..aa80692a37 100644
--- a/crawl-ref/source/xom.cc
+++ b/crawl-ref/source/xom.cc
@@ -527,9 +527,9 @@ static bool xom_is_good(int sever)
const bool is_demonic = (mons_holiness(mon) == MH_DEMONIC);
// Mark factions hostile as appropriate.
- if ((is_demonic && hostiletype == 1)
- || (!is_demonic && hostiletype == 2)
- || hostiletype == 3)
+ if (hostiletype == 3
+ || (is_demonic && hostiletype == 1)
+ || (!is_demonic && hostiletype == 2))
{
mon->attitude = ATT_HOSTILE;
}