diff options
author | Adam Borowski <kilobyte@angband.pl> | 2011-10-11 00:32:25 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2011-10-11 00:51:34 +0200 |
commit | 56bc1ab90b367b4d8a1dce8fc33a7f951edaafee (patch) | |
tree | 1af6834ad6e7ccdd56683a9a304a8422f8e1f5c6 /crawl-ref/source/l_food.cc | |
parent | 3a956086dbbf1f490635405bde24d1f1136be127 (diff) | |
download | crawl-ref-56bc1ab90b367b4d8a1dce8fc33a7f951edaafee.tar.gz crawl-ref-56bc1ab90b367b4d8a1dce8fc33a7f951edaafee.zip |
Clean up an unused argument.
Diffstat (limited to 'crawl-ref/source/l_food.cc')
-rw-r--r-- | crawl-ref/source/l_food.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/crawl-ref/source/l_food.cc b/crawl-ref/source/l_food.cc index 089390bed3..f5837defae 100644 --- a/crawl-ref/source/l_food.cc +++ b/crawl-ref/source/l_food.cc @@ -70,7 +70,7 @@ static int food_can_eat(lua_State *ls) if (lua_isboolean(ls, 2)) hungercheck = lua_toboolean(ls, 2); - bool edible = item && can_ingest(*item, true, true, hungercheck); + bool edible = item && can_ingest(*item, true, hungercheck); lua_pushboolean(ls, edible); return (1); } @@ -102,9 +102,7 @@ static int food_eat(lua_State *ls) bool eaten = false; if (!you.turn_is_over) { - // When we get down to eating, we don't care if the eating is courtesy - // an un-ided amulet of the gourmand. - if (item && can_ingest(*item, false, false)) + if (item && can_ingest(*item, false)) eaten = eat_item(*item); } lua_pushboolean(ls, eaten); |