Skip to content

Commit

Permalink
Only reject air for pathfinding bounds, not pathable tiles without fl…
Browse files Browse the repository at this point in the history
…oors (#65720)
  • Loading branch information
RenechCDDA authored May 20, 2023
1 parent ddac6a3 commit 7a6bfc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7089,7 +7089,7 @@ void map::reachable_flood_steps( std::vector<tripoint> &reachable_pts, const tri
const tripoint tp = { p.xy(), f.z };
const int tp_cost = move_cost( tp );
// rejection conditions
if( tp_cost < cost_min || tp_cost > cost_max || ( !has_floor_or_support( tp ) && tp != f ) ) {
if( tp_cost < cost_min || tp_cost > cost_max || is_open_air( tp ) ) {
continue;
}
// set initial cost for grid point
Expand Down

0 comments on commit 7a6bfc0

Please sign in to comment.