We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 153ac21 commit fdfaf70Copy full SHA for fdfaf70
Source/System/PathFinder.cpp
@@ -439,7 +439,9 @@ bool PathFinder::NodeIsOnSolidGround(const PathNode& node) const {
439
440
float PathFinder::GetMaterialTransitionCost(const Material& material) const {
441
float strength = material.GetIntegrity();
442
- if (strength > s_DigStrength) {
+
443
+ // Always treat doors as diggable.
444
+ if (strength > s_DigStrength && material.GetIndex() != MaterialColorKeys::g_MaterialDoor) {
445
strength *= 1000.0F;
446
}
447
0 commit comments