Fix the ts map importer saving default values for Health and Facing

This commit is contained in:
abcdefg30
2018-05-03 10:44:05 +02:00
committed by reaperrr
parent 3c34330925
commit df8e2f4be4

View File

@@ -527,11 +527,15 @@ namespace OpenRA.Mods.Cnc.UtilityCommands
var ar = new ActorReference(name)
{
new LocationInit(cell),
new OwnerInit("Neutral"),
new HealthInit(100 * health / 256),
new FacingInit(facing),
new OwnerInit("Neutral")
};
if (health != 256)
ar.Add(new HealthInit(100 * health / 256));
if (facing != 96)
ar.Add(new FacingInit(facing));
if (isDeployed)
ar.Add(new DeployStateInit(DeployState.Deployed));