diff options
Diffstat (limited to 'crawl-ref/source/mon-place.cc')
-rw-r--r-- | crawl-ref/source/mon-place.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/mon-place.cc b/crawl-ref/source/mon-place.cc index 59dafc75bc..da44b4309a 100644 --- a/crawl-ref/source/mon-place.cc +++ b/crawl-ref/source/mon-place.cc @@ -860,7 +860,8 @@ int place_monster(mgen_data mg, bool force_pos) case PROX_AWAY_FROM_PLAYER: // If this is supposed to measure los vs not los, // then see_cell(mg.pos) should be used instead. (jpeg) - close_to_player = (distance(you.pos(), mg.pos) < 64); + close_to_player = (distance(you.pos(), mg.pos) <= + LOS_RADIUS_SQ); if (mg.proximity == PROX_CLOSE_TO_PLAYER && !close_to_player || mg.proximity == PROX_AWAY_FROM_PLAYER && close_to_player) |