Skip to content

Commit 153ac21

Browse files
committed
Don't always treat doors as diggable
1 parent d9565a6 commit 153ac21

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Source/System/PathFinder.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -439,9 +439,7 @@ bool PathFinder::NodeIsOnSolidGround(const PathNode& node) const {
439439

440440
float PathFinder::GetMaterialTransitionCost(const Material& material) const {
441441
float strength = material.GetIntegrity();
442-
443-
// Always treat doors as diggable.
444-
if (strength > s_DigStrength && material.GetIndex() != MaterialColorKeys::g_MaterialDoor) {
442+
if (strength > s_DigStrength) {
445443
strength *= 1000.0F;
446444
}
447445

0 commit comments

Comments
 (0)