Update an outdated comment in Land.cs

This commit is contained in:
abcdefg30
2022-01-04 18:47:31 +01:00
committed by reaperrr
parent cdac14b92b
commit 942a0c8712

View File

@@ -58,7 +58,7 @@ namespace OpenRA.Mods.Common.Activities
this.landRange = landRange.Length >= 0 ? landRange : aircraft.Info.LandRange; this.landRange = landRange.Length >= 0 ? landRange : aircraft.Info.LandRange;
this.targetLineColor = targetLineColor; this.targetLineColor = targetLineColor;
// NOTE: desiredFacing = -1 means we should not prefer any particular facing and instead just // NOTE: Assigning null to desiredFacing means we should not prefer any particular facing and instead just
// use whatever facing gives us the most direct path to the landing site. // use whatever facing gives us the most direct path to the landing site.
if (!facing.HasValue && aircraft.Info.TurnToLand) if (!facing.HasValue && aircraft.Info.TurnToLand)
desiredFacing = aircraft.Info.InitialFacing; desiredFacing = aircraft.Info.InitialFacing;