Fix Turreted style issues.

This commit is contained in:
Paul Chote
2014-10-04 23:17:15 +13:00
parent f7c344bef8
commit c6691e881c
9 changed files with 26 additions and 27 deletions

View File

@@ -80,17 +80,17 @@ namespace OpenRA.Mods.RA
{
if (state == PopupState.Open && idleTicks++ > info.CloseDelay)
{
turret.desiredFacing = info.DefaultFacing;
turret.DesiredFacing = info.DefaultFacing;
state = PopupState.Rotating;
}
else if (state == PopupState.Rotating && turret.turretFacing == info.DefaultFacing)
else if (state == PopupState.Rotating && turret.TurretFacing == info.DefaultFacing)
{
state = PopupState.Transitioning;
rb.PlayCustomAnimThen(self, "closing", () =>
{
state = PopupState.Closed;
rb.PlayCustomAnimRepeating(self, "closed-idle");
turret.desiredFacing = null;
turret.DesiredFacing = null;
});
}
}
@@ -101,7 +101,7 @@ namespace OpenRA.Mods.RA
{
state = PopupState.Closed;
rb.PlayCustomAnimRepeating(self, "closed-idle");
turret.desiredFacing = null;
turret.DesiredFacing = null;
}
}