diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-04-01 21:25:42 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-04-01 21:25:42 +0000 |
commit | 1deeefa3619523ccf106444b0f768d2ee4916d02 (patch) | |
tree | e653d327802e3d925361d96ec29fd704012e2203 /crawl-ref | |
parent | b7de9e08aea41a00de5b8a912b31baf332f904e7 (diff) | |
download | crawl-ref-1deeefa3619523ccf106444b0f768d2ee4916d02.tar.gz crawl-ref-1deeefa3619523ccf106444b0f768d2ee4916d02.zip |
Announce corpse availability only if the corpse is in LOS.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1179 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref')
-rw-r--r-- | crawl-ref/source/monstuff.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/monstuff.cc b/crawl-ref/source/monstuff.cc index 507f1c1f7b..e7f333ad45 100644 --- a/crawl-ref/source/monstuff.cc +++ b/crawl-ref/source/monstuff.cc @@ -326,8 +326,8 @@ static void place_monster_corpse(const monsters *monster) // Don't care if 'o' is changed, and it shouldn't be (corpses don't stack) move_item_to_grid( &o, monster->x, monster->y ); - if (you.hunger_state < HS_SATIATED) - learned_something_new(TUT_MAKE_CHUNKS); + if (you.hunger_state < HS_SATIATED && see_grid(monster->x, monster->y)) + learned_something_new(TUT_MAKE_CHUNKS); } // end place_monster_corpse() static void tutorial_inspect_kill() |