From b429e730d26a8ab39fdae191e55278b6abb2c936 Mon Sep 17 00:00:00 2001 From: Coolthulhu Date: Sat, 1 Feb 2025 22:41:59 +0100 Subject: [PATCH] Fix cone shot not going through fences --- src/ranged_aoe.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ranged_aoe.cpp b/src/ranged_aoe.cpp index 176e95189a07..56a2cc358450 100644 --- a/src/ranged_aoe.cpp +++ b/src/ranged_aoe.cpp @@ -53,7 +53,7 @@ void execute_shaped_attack( const shape &sh, const projectile &proj, Creature &a const auto aoe_permeable = [&here]( const tripoint & p ) { return here.passable( p ) || // Necessary evil. TODO: Make map::shoot not evil. - ( here.is_transparent( p ) && here.has_flag_furn( TFLAG_PERMEABLE, p ) ); + ( here.is_transparent( p ) && here.has_flag_ter( TFLAG_PERMEABLE, p ) ); }; const tripoint &origin = sh.get_origin(); std::priority_queue queue; @@ -179,7 +179,7 @@ std::map expected_coverage( const shape &sh, const map &here, double current_coverage = parent_coverage; if( here.passable( p ) || // Necessary evil. TODO: Make map::shoot not evil. - ( here.is_transparent( p ) && here.has_flag_furn( TFLAG_PERMEABLE, p ) ) ) { + ( here.is_transparent( p ) && here.has_flag_ter( TFLAG_PERMEABLE, p ) ) ) { // noop } else { int bash_str = here.bash_strength( p );