Skip to content

Commit fdfaf70

Browse files
committed
Revert "Don't always treat doors as diggable"
This reverts commit 153ac21.
1 parent 153ac21 commit fdfaf70

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Source/System/PathFinder.cpp

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

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

0 commit comments

Comments
 (0)