Skip to content

Commit

Permalink
Merge pull request #37047 from Trioct/drug_fix
Browse files Browse the repository at this point in the history
Fix using drugs
  • Loading branch information
Rivet-the-Zombie authored Jan 19, 2020
2 parents 9ee0415 + 4779f93 commit fb9dabb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4823,10 +4823,10 @@ void player::use( item_location loc )
used.type->can_use( "CATTLEFODDER" ) ) {
invoke_item( &used, loc.position() );

} else if( !used.is_craft() && !used.type->has_use() && ( used.is_food() ||
used.is_medication() ||
used.get_contained().is_food() ||
used.get_contained().is_medication() ) ) {
} else if( !used.is_craft() && ( used.is_medication() || ( !used.type->has_use() &&
( used.is_food() ||
used.get_contained().is_food() ||
used.get_contained().is_medication() ) ) ) ) {
consume( loc );

} else if( used.is_book() ) {
Expand Down

0 comments on commit fb9dabb

Please sign in to comment.