Skip to content

Commit

Permalink
fix: mountable terrain usable for firing heavy weapons agian (#4130)
Browse files Browse the repository at this point in the history
  • Loading branch information
chaosvolt authored Jan 20, 2024
1 parent 8cae481 commit 4aa83ce
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/ranged.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -776,8 +776,10 @@ namespace
auto is_mountable( const map &m, const tripoint &pos ) -> bool
{
// usage of any attached bipod is dependent upon terrain
// sandbag barricades are impassable but climbable
if( m.climb_difficulty( pos ) <= 5 && m.has_flag_ter_or_furn( "MOUNTABLE", pos ) ) {
// only allow mounting passable OR climable terrain
// example: sandbag barricades are impassable but climbable
if( ( m.climb_difficulty( pos ) <= 5 || m.passable( pos ) ) &&
m.has_flag_ter_or_furn( "MOUNTABLE", pos ) ) {
return true;
}

Expand Down

0 comments on commit 4aa83ce

Please sign in to comment.