diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-07-03 02:09:43 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-07-03 02:09:43 +0000 |
commit | 84b38b08ddec5342fe8775d8eadaa858db8cf355 (patch) | |
tree | 814a38ac1a64c86a0f82b4df05222495bbcfec06 /crawl-ref/source/monstuff.cc | |
parent | d719be7cf755b4f66081095ee769b22bb393a40e (diff) | |
download | crawl-ref-84b38b08ddec5342fe8775d8eadaa858db8cf355.tar.gz crawl-ref-84b38b08ddec5342fe8775d8eadaa858db8cf355.zip |
Fix pacified monsters' leaving the level when the player gets far enough
away.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6361 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 d2c9e490a7..a3075f5b1f 100644 --- a/crawl-ref/source/monstuff.cc +++ b/crawl-ref/source/monstuff.cc @@ -3071,7 +3071,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 * 2) + >= LOS_RADIUS * 4) { make_mons_leave_level(mon); return; |