summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-17 01:45:54 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-17 01:45:54 +0000
commit582234062b89cfcf85b09ae50353634a20a61f87 (patch)
tree89171a3d1e90156dd086513ed2fe3490f1ca070c
parent9b87e731486603f433736b24dd0f3de200bef9d3 (diff)
downloadcrawl-ref-582234062b89cfcf85b09ae50353634a20a61f87.tar.gz
crawl-ref-582234062b89cfcf85b09ae50353634a20a61f87.zip
Add minor cosmetic fixes.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5903 c06c8d41-db1a-0410-9941-cceddc491573
-rw-r--r--crawl-ref/source/monstuff.cc12
-rw-r--r--crawl-ref/source/monstuff.h4
2 files changed, 8 insertions, 8 deletions
diff --git a/crawl-ref/source/monstuff.cc b/crawl-ref/source/monstuff.cc
index 9a7f37597c..c9f36dea98 100644
--- a/crawl-ref/source/monstuff.cc
+++ b/crawl-ref/source/monstuff.cc
@@ -1997,8 +1997,8 @@ static bool _wounded_damaged(int monster_type)
// 2. Call handle_behaviour to re-evaluate AI state and target x,y
//
//---------------------------------------------------------------
-void behaviour_event( monsters *mon, int event, int src,
- int src_x, int src_y )
+void behaviour_event(monsters *mon, int event, int src,
+ int src_x, int src_y)
{
beh_type old_behaviour = mon->behaviour;
@@ -2039,7 +2039,7 @@ void behaviour_event( monsters *mon, int event, int src,
case ME_ANNOY:
// Will turn monster against <src>, unless they
// are BOTH friendly or good neutral AND stupid,
- // or else fleeing anyway. Hitting someone over
+ // or else fleeing anyway. Hitting someone over
// the head, of course, always triggers this code.
if (event == ME_WHACK
|| ((wontAttack != sourceWontAttack || isSmart)
@@ -2061,7 +2061,7 @@ void behaviour_event( monsters *mon, int event, int src,
}
}
- // Now set target x,y so that monster can whack
+ // Now set target x, y so that monster can whack
// back (once) at an invisible foe.
if (event == ME_WHACK)
setTarget = true;
@@ -2145,7 +2145,7 @@ void behaviour_event( monsters *mon, int event, int src,
mon->del_ench(ENCH_CHARM);
// Do any resultant foe or state changes.
- _handle_behaviour( mon );
+ _handle_behaviour(mon);
if (old_behaviour == BEH_LURK && !mons_is_lurking(mon))
{
@@ -2163,7 +2163,7 @@ void behaviour_event( monsters *mon, int event, int src,
if (mon->has_ench(ENCH_SUBMERGED)
&& !mon->del_ench(ENCH_SUBMERGED))
{
- // Couldn't unsubmerge.
+ // Lurking monsters that can't unsubmerge keep lurking.
mon->behaviour = BEH_LURK;
}
break;
diff --git a/crawl-ref/source/monstuff.h b/crawl-ref/source/monstuff.h
index a2ca134a64..c003de33d7 100644
--- a/crawl-ref/source/monstuff.h
+++ b/crawl-ref/source/monstuff.h
@@ -89,8 +89,8 @@ void monster_cleanup(monsters *monster);
/* ***********************************************************************
* called from: monstuff beam effects fight view
* *********************************************************************** */
-void behaviour_event( monsters *mon, int event_type,
- int src = MHITNOT, int src_x = 0, int src_y = 0 );
+void behaviour_event(monsters *mon, int event_type, int src = MHITNOT,
+ int src_x = 0, int src_y = 0);
/* ***********************************************************************
* called from: fight - it_use3 - spells