diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-29 03:08:05 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-29 03:08:05 +0000 |
commit | 601b23485d2ec45f27d7a95486ca51ff4c8957ea (patch) | |
tree | ca468ac895f5e3dc5ac01fda0719e403eaa87131 /crawl-ref/source/monstuff.cc | |
parent | 9bf5023ad31b71baba9f13bae65570dfdc848259 (diff) | |
download | crawl-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.cc | 2 |
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; |