diff --git a/src/map.cpp b/src/map.cpp index fb6b969c5eafd..d2cd1150645f1 100644 --- a/src/map.cpp +++ b/src/map.cpp @@ -10778,7 +10778,6 @@ void map::update_pathfinding_cache( const tripoint_bub_ms &p ) const if( terrain.has_flag( ter_furn_flag::TFLAG_SMALL_PASSAGE ) ) { cur_value |= ( PathfindingFlag::RestrictLarge | PathfindingFlag::RestrictHuge ); - } cache.special[p.x()][p.y()] = cur_value; diff --git a/src/pathfinding.cpp b/src/pathfinding.cpp index 0a6b26d3c6090..2230af349baf7 100644 --- a/src/pathfinding.cpp +++ b/src/pathfinding.cpp @@ -235,11 +235,8 @@ int map::cost_to_pass( const tripoint_bub_ms &cur, const tripoint_bub_ms &p, ( p_special & PathfindingFlag::RestrictLarge && settings.size > creature_size::medium ) || ( p_special & PathfindingFlag::RestrictHuge && settings.size > creature_size::large ) ) ) { return PF_IMPASSABLE; - } - - const int bash = settings.bash_strength; const bool allow_open_doors = settings.allow_open_doors; const bool allow_unlock_doors = settings.allow_unlock_doors;