From 5f36fd1f9b38f2d08fcb7b36409b542f86fd986d Mon Sep 17 00:00:00 2001 From: RoyBerube Date: Fri, 8 May 2020 01:18:43 -0600 Subject: [PATCH] Update consumption.cpp Attempt to engorge on infinite source properly triggers consequence check. --- src/consumption.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/consumption.cpp b/src/consumption.cpp index 18c6c23c22ebb..f053f027904ce 100644 --- a/src/consumption.cpp +++ b/src/consumption.cpp @@ -781,8 +781,7 @@ ret_val Character::will_eat( const item &food, bool interactive ) add_consequence( _( "Your stomach won't be happy (not rotten enough)." ), ALLERGY_WEAK ); } - if( food.charges > 0 && stomach.stomach_remaining( *this ) < food.volume() / food.charges && - !food.has_infinite_charges() ) { + if( food.charges > 0 && food.charges_per_volume( stomach.stomach_remaining( *this ) ) < 1 ) { if( edible ) { add_consequence( _( "You're full already and will be forcing yourself to eat." ), TOO_FULL ); } else {