diff options
Diffstat (limited to 'crawl-ref/source/monstuff.cc')
-rw-r--r-- | crawl-ref/source/monstuff.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/crawl-ref/source/monstuff.cc b/crawl-ref/source/monstuff.cc index b0eed923cd..1cca39083e 100644 --- a/crawl-ref/source/monstuff.cc +++ b/crawl-ref/source/monstuff.cc @@ -395,6 +395,11 @@ int place_monster_corpse(const monsters *monster, bool silent, if (!in_bounds(monster->pos())) return (-1); + // Don't attempt to place corpses within walls, either. + // Currently, this only applies to (shapeshifter) rock worms. + if (grid_is_wall(grd(monster->pos()))) + return (-1); + item_def corpse; const int corpse_class = fill_out_corpse(monster, corpse); |