Skip to content

Commit

Permalink
Use bipod when shooting from prone (#51472)
Browse files Browse the repository at this point in the history
  • Loading branch information
ildifa authored Oct 4, 2021
1 parent a24cb49 commit dc30d53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ranged.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -747,8 +747,8 @@ int Character::fire_gun( const tripoint &target, int shots, item &gun )
}

map &here = get_map();
// usage of any attached bipod is dependent upon terrain
bool bipod = here.has_flag_ter_or_furn( ter_furn_flag::TFLAG_MOUNTABLE, pos() );
// usage of any attached bipod is dependent upon terrain or on being prone
bool bipod = here.has_flag_ter_or_furn( ter_furn_flag::TFLAG_MOUNTABLE, pos() ) || is_prone();
if( !bipod ) {
if( const optional_vpart_position vp = here.veh_at( pos() ) ) {
bipod = vp->vehicle().has_part( pos(), "MOUNTABLE" );
Expand Down

0 comments on commit dc30d53

Please sign in to comment.