diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-02-22 20:57:36 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-02-22 20:57:36 +0000 |
commit | 910f0c606fea238e7382a713e0d465ae189c05ce (patch) | |
tree | 7cd506015421ef36a1b27b9eefaf3ffb53af7173 /crawl-ref/source/food.cc | |
parent | d9c379b296d7d1444f6fd32f5da98db51bccdbce (diff) | |
download | crawl-ref-910f0c606fea238e7382a713e0d465ae189c05ce.tar.gz crawl-ref-910f0c606fea238e7382a713e0d465ae189c05ce.zip |
Fix inverted logic when checking if the player likes chunks.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9163 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/food.cc')
-rw-r--r-- | crawl-ref/source/food.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crawl-ref/source/food.cc b/crawl-ref/source/food.cc index 3a71764a56..d3a86248e0 100644 --- a/crawl-ref/source/food.cc +++ b/crawl-ref/source/food.cc @@ -1509,7 +1509,7 @@ int prompt_eat_chunks() return (0); // If we *know* player doesn't have the gourmand effect, don't prompt. - if (!player_likes_chunks(true)) + if (!player_likes_chunks()) return (0); bool found_valid = false; @@ -1735,7 +1735,7 @@ static void _say_chunk_flavour(bool likes_chunks) static void _eat_chunk(corpse_effect_type chunk_effect, bool cannibal, int mon_intel) { - bool likes_chunks = player_likes_chunks(); + bool likes_chunks = player_likes_chunks(true); int nutrition = _chunk_nutrition(likes_chunks); int hp_amt = 0; bool suppress_msg = false; // do we display the chunk nutrition message? @@ -2551,7 +2551,7 @@ bool can_ingest(int what_isit, int kindof_thing, bool suppress_msg, // a player could be one and not the other IMHO - 13mar2000 {dlb} bool ur_chunkslover = ((check_hunger ? you.hunger_state < HS_SATIATED : true) - || player_likes_chunks()); + || player_likes_chunks(true)); switch (what_isit) { @@ -2630,7 +2630,7 @@ bool can_ingest(int what_isit, int kindof_thing, bool suppress_msg, mpr("Urks, you're a herbivore!"); return (false); } - if (!player_likes_chunks()) + if (!player_likes_chunks(true)) _check_amu_the_gourmand(false); return (true); case POT_WATER: |