diff options
author | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-02-08 21:03:03 +0000 |
---|---|---|
committer | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-02-08 21:03:03 +0000 |
commit | 903545490b187e5cf38ad5e88b0e5be1e614bc9f (patch) | |
tree | 267e52ff649e51b40b6c41f22bd66c7fb6062e21 /crawl-ref/source/food.cc | |
parent | 830ed9f159709c65fee6993db9eae7358128770d (diff) | |
download | crawl-ref-903545490b187e5cf38ad5e88b0e5be1e614bc9f.tar.gz crawl-ref-903545490b187e5cf38ad5e88b0e5be1e614bc9f.zip |
Fix [1974504]: eating from the floor did not respect !e.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8991 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/food.cc')
-rw-r--r-- | crawl-ref/source/food.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crawl-ref/source/food.cc b/crawl-ref/source/food.cc index 71416e87f8..9608329102 100644 --- a/crawl-ref/source/food.cc +++ b/crawl-ref/source/food.cc @@ -1302,6 +1302,9 @@ int eat_from_floor(bool skip_chunks) return -1; case 'e': case 'y': + if (!check_warning_inscriptions(*item, OPER_EAT)) + break; + if (can_ingest(item->base_type, item->sub_type, false)) { int ilink = item_on_floor(*item, you.pos()); |