From fc09d2de4c77399a6562507ad99c394d93c5cee9 Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Sat, 28 Jun 2008 21:46:27 +0000 Subject: Fix 2004501: buggy ?identify; also finally properly id ?identify itself after a successful identification (if there are several). Fix 2004793: wandering mushroom flees - for real, this time (I hope). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6189 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/effects.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'crawl-ref/source/effects.cc') diff --git a/crawl-ref/source/effects.cc b/crawl-ref/source/effects.cc index dc7ed52ea4..92729148ef 100644 --- a/crawl-ref/source/effects.cc +++ b/crawl-ref/source/effects.cc @@ -2736,7 +2736,7 @@ static void _catchup_monster_moves(monsters *mon, int turns) } else if (ranged_attack) { - // if we're doing short time movement and the monster has a + // If we're doing short time movement and the monster has a // ranged attack (missile or spell), then the monster will // flee to gain distance if its "too close", else it will // just shift its position rather than charge the player. -- bwr @@ -2744,18 +2744,18 @@ static void _catchup_monster_moves(monsters *mon, int turns) { mon->behaviour = BEH_FLEE; - // if the monster is on the target square, fleeing won't work + // If the monster is on the target square, fleeing won't work. if (mon->x == mon->target_x && mon->y == mon->target_y) { if (you.x_pos != mon->x || you.y_pos != mon->y) { - // flee from player's position if different + // Flee from player's position if different. mon->target_x = you.x_pos; mon->target_y = you.y_pos; } else { - // randomize the target so we have a direction to flee + // Randomize the target so we have a direction to flee. mon->target_x += (random2(3) - 1); mon->target_y += (random2(3) - 1); } -- cgit v1.2.3-54-g00ecf