diff options
Diffstat (limited to 'crawl-ref/source/monstuff.cc')
-rw-r--r-- | crawl-ref/source/monstuff.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crawl-ref/source/monstuff.cc b/crawl-ref/source/monstuff.cc index e43e33ec8e..66ebef55e0 100644 --- a/crawl-ref/source/monstuff.cc +++ b/crawl-ref/source/monstuff.cc @@ -1111,6 +1111,7 @@ bool random_near_space(int ox, int oy, int &tx, int &ty, bool allow_adjacent, while ((!see_grid(tx, ty) && restrict_LOS) || grd[tx][ty] < DNGN_SHALLOW_WATER || mgrd[tx][ty] != NON_MONSTER + || (tx == you.x_pos && ty == you.y_pos) || (!allow_adjacent && distance(ox, oy, tx, ty) <= 2)); return (tries < 150); |