From 601b23485d2ec45f27d7a95486ca51ff4c8957ea Mon Sep 17 00:00:00 2001 From: dolorous Date: Sun, 29 Jun 2008 03:08:05 +0000 Subject: 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 --- crawl-ref/source/monstuff.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crawl-ref/source/monstuff.cc') 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; -- cgit v1.2.3-54-g00ecf