Skip to content

Commit

Permalink
Fix cone shot not going through fences
Browse files Browse the repository at this point in the history
  • Loading branch information
Coolthulhu committed Feb 1, 2025
1 parent 62e1cd3 commit b429e73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ranged_aoe.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<tripoint_distance> queue;
Expand Down Expand Up @@ -179,7 +179,7 @@ std::map<tripoint, double> 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 );
Expand Down

0 comments on commit b429e73

Please sign in to comment.