summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/monstuff.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-29 03:08:05 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-29 03:08:05 +0000
commit601b23485d2ec45f27d7a95486ca51ff4c8957ea (patch)
treeca468ac895f5e3dc5ac01fda0719e403eaa87131 /crawl-ref/source/monstuff.cc
parent9bf5023ad31b71baba9f13bae65570dfdc848259 (diff)
downloadcrawl-ref-601b23485d2ec45f27d7a95486ca51ff4c8957ea.tar.gz
crawl-ref-601b23485d2ec45f27d7a95486ca51ff4c8957ea.zip
Fix calculation of how far away a pacified monster is from the player.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6199 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/monstuff.cc')
-rw-r--r--crawl-ref/source/monstuff.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/monstuff.cc b/crawl-ref/source/monstuff.cc
index 92d5901071..fdba0f15f0 100644
--- a/crawl-ref/source/monstuff.cc
+++ b/crawl-ref/source/monstuff.cc
@@ -3063,7 +3063,7 @@ static void _handle_behaviour(monsters *mon)
// If a pacified monster is far enough away from the
// player, make it leave the level.
if (grid_distance(mon->x, mon->y, you.x_pos, you.y_pos)
- >= LOS_RADIUS * LOS_RADIUS * 4)
+ >= LOS_RADIUS * LOS_RADIUS * 2)
{
make_mons_leave_level(mon);
return;