summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--crawl-ref/docs/changes.stone_soup1
-rw-r--r--crawl-ref/source/monstuff.cc2
2 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/docs/changes.stone_soup b/crawl-ref/docs/changes.stone_soup
index a4dc7b63ca..3e1a89bc33 100644
--- a/crawl-ref/docs/changes.stone_soup
+++ b/crawl-ref/docs/changes.stone_soup
@@ -5,6 +5,7 @@ Disclaimer: These are merely the highlights, not an exhaustive list of changes.
* Improved performance for the Tiles version.
* Fixed crashes related to giant spores.
+* Fixed monsters refusing to enter or attack into grids on the map edge.
* Fixed summoning decks giving permanent summons at low power.
* Fixed erroneous "blocked line of fire" warnings.
* Fixed missing items in Tiles inventory menus.
diff --git a/crawl-ref/source/monstuff.cc b/crawl-ref/source/monstuff.cc
index 765cf04b97..2d95dbdd44 100644
--- a/crawl-ref/source/monstuff.cc
+++ b/crawl-ref/source/monstuff.cc
@@ -4809,7 +4809,7 @@ static void _handle_movement(monsters *monster)
}
// Bounds check: don't let fleeing monsters try to run off the grid.
- const coord_def s = monster->target + mmov;
+ const coord_def s = monster->pos() + mmov;
if (!in_bounds_x(s.x))
mmov.x = 0;
if (!in_bounds_y(s.y))