Convert yaml-exposed facings to WAngle.
This commit is contained in:
@@ -31,8 +31,8 @@ namespace OpenRA.Mods.Common.Activities
|
||||
protected override void OnFirstRun(Actor self)
|
||||
{
|
||||
// Turn to the required facing.
|
||||
if (deploy.DeployState == DeployState.Undeployed && deploy.Info.Facing != -1 && canTurn && !moving)
|
||||
QueueChild(new Turn(self, WAngle.FromFacing(deploy.Info.Facing)));
|
||||
if (deploy.DeployState == DeployState.Undeployed && deploy.Info.Facing.HasValue && canTurn && !moving)
|
||||
QueueChild(new Turn(self, deploy.Info.Facing.Value));
|
||||
}
|
||||
|
||||
public override bool Tick(Actor self)
|
||||
|
||||
Reference in New Issue
Block a user