Skip to content

Commit

Permalink
Fix picking up liquid water bug (CleverRaven#33357)
Browse files Browse the repository at this point in the history
As above.
  • Loading branch information
ZhilkinSerg authored Aug 19, 2019
2 parents ec26a7e + 5755b74 commit cf4ce7d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pickup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,8 @@ bool pick_one_up( item_location &loc, int quantity, bool &got_water, bool &offer
if( !( got_water = !( u.crush_frozen_liquid( newloc ) ) ) ) {
option = STASH;
}
} else if( newit.made_of_from_type( LIQUID ) && !newit.is_frozen_liquid() ) {
got_water = true;
} else if( !u.can_pickWeight( newit, false ) ) {
if( !autopickup ) {
const std::string &explain = string_format( _( "The %s is too heavy!" ),
Expand Down

0 comments on commit cf4ce7d

Please sign in to comment.