Fix RemoveTurnToDock update rule

This commit is contained in:
penev92
2022-06-15 02:12:44 +03:00
committed by Paul Chote
parent 5f42c7c8df
commit 07db77fb8d

View File

@@ -45,7 +45,7 @@ namespace OpenRA.Mods.Common.UpdateRules.Rules
if (aircraft != null)
{
var turnToDock = aircraft.LastChildMatching("TurnToDock");
if (turnToDock != null || turnToDock.NodeValue<bool>())
if (turnToDock == null || !turnToDock.NodeValue<bool>())
yield break;
turningAircraft.Add(Tuple.Create(actorNode.Key, actorNode.Location.Filename));