fix crash in prev; fix broken pathing wrt crushables
This commit is contained in:
@@ -102,6 +102,7 @@ namespace OpenRA.GameRules
|
||||
case "Charges": FieldLoader.LoadField(this, "Charges", content.Nodes["Charges"].Value); break;
|
||||
case "ValidTargets": FieldLoader.LoadField(this, "ValidTargets", content.Nodes["ValidTargets"].Value); break;
|
||||
case "Underwater": FieldLoader.LoadField(this, "Underwater", content.Nodes["Underwater"].Value); break;
|
||||
case "BurstDelay": FieldLoader.LoadField(this, "BurstDelay", content.Nodes["BurstDelay"].Value); break;
|
||||
|
||||
case "Warhead":
|
||||
{
|
||||
|
||||
@@ -72,9 +72,9 @@ namespace OpenRA
|
||||
}
|
||||
|
||||
var pb = FindBidiPath(
|
||||
PathSearch.FromPoint(world, target, from, umt, false)
|
||||
PathSearch.FromPoint(world, target, from, umt, true)
|
||||
.WithCustomBlocker(AvoidUnitsNear(from, 4)),
|
||||
PathSearch.FromPoint(world, from, target, umt, false)
|
||||
PathSearch.FromPoint(world, from, target, umt, true)
|
||||
.WithCustomBlocker(AvoidUnitsNear(from, 4))
|
||||
.InReverse());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user