summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/monstuff.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-02 18:34:42 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-02 18:34:42 +0000
commit67e107b864b7c28ca740234c1752bb961039f8c9 (patch)
tree74f004c34cd3bc2ac98e58c1a5b0eb65fe97b860 /crawl-ref/source/monstuff.cc
parent8f24565555faf8e1cdbe5efd1e5b834fddd6ee51 (diff)
downloadcrawl-ref-67e107b864b7c28ca740234c1752bb961039f8c9.tar.gz
crawl-ref-67e107b864b7c28ca740234c1752bb961039f8c9.zip
Add more minor cosmetic fixes.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6345 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/monstuff.cc')
-rw-r--r--crawl-ref/source/monstuff.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/crawl-ref/source/monstuff.cc b/crawl-ref/source/monstuff.cc
index 12c4e2f1df..dd199d01c0 100644
--- a/crawl-ref/source/monstuff.cc
+++ b/crawl-ref/source/monstuff.cc
@@ -1980,7 +1980,7 @@ void behaviour_event(monsters *mon, int event, int src,
else if (src != MHITNOT)
sourceWontAttack = mons_wont_attack( &menv[src] );
- switch(event)
+ switch (event)
{
case ME_DISTURB:
// Assumes disturbed by noise...
@@ -2078,8 +2078,8 @@ void behaviour_event(monsters *mon, int event, int src,
mon->foe = src;
mon->behaviour = BEH_FLEE;
- // Assume monsters know where to run from, even
- // if player is invisible.
+ // Assume monsters know where to run from, even if player is
+ // invisible.
setTarget = true;
if (see_grid(mon->x, mon->y))
learned_something_new(TUT_FLEEING_MONSTER);
@@ -2091,7 +2091,7 @@ void behaviour_event(monsters *mon, int event, int src,
if (mon->behaviour != BEH_FLEE && !mon->has_ench(ENCH_FEAR))
break;
- // Don't stop fleeing from sanctuary
+ // Don't stop fleeing from sanctuary.
if (!mons_wont_attack(mon) && is_sanctuary(mon->x, mon->y))
break;