summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/directn.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-05-19 17:29:26 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-05-19 17:29:26 +0000
commitad56ba63d755da4dca3d44947f3f86a26faf7aa3 (patch)
tree85187a3a6cd379b29adf98d057c46dddb5cbf9e9 /crawl-ref/source/directn.cc
parente8f0d9e7d82341a70175b6eaf78e5db32a314775 (diff)
downloadcrawl-ref-ad56ba63d755da4dca3d44947f3f86a26faf7aa3.tar.gz
crawl-ref-ad56ba63d755da4dca3d44947f3f86a26faf7aa3.zip
Handle the good neutral attitude properly in debugging information and
the wizard mode attitude toggle. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5133 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/directn.cc')
-rw-r--r--crawl-ref/source/directn.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/crawl-ref/source/directn.cc b/crawl-ref/source/directn.cc
index 33d2bb0a2e..3d544e6ba7 100644
--- a/crawl-ref/source/directn.cc
+++ b/crawl-ref/source/directn.cc
@@ -845,10 +845,13 @@ void direction(dist& moves, targeting_type restricts,
switch (m.attitude)
{
case ATT_FRIENDLY:
- m.attitude = ATT_NEUTRAL;
+ m.attitude = ATT_GOOD_NEUTRAL;
m.flags &= ~MF_CREATED_FRIENDLY;
m.flags |= MF_WAS_NEUTRAL;
break;
+ case ATT_GOOD_NEUTRAL:
+ m.attitude = ATT_NEUTRAL;
+ break;
case ATT_NEUTRAL:
m.attitude = ATT_HOSTILE;
m.flags &= ~MF_WAS_NEUTRAL;