Make ActorPreview and EditorActorPreview wrap ActorReference.

This commit is contained in:
Paul Chote
2020-06-12 13:21:09 +01:00
committed by reaperrr
parent ae7cfa56b7
commit c6c3a8c60d
22 changed files with 265 additions and 162 deletions

View File

@@ -410,11 +410,10 @@ namespace OpenRA.Mods.Common.UtilityCommands
new OwnerInit(parts[0]),
};
var initDict = actor.InitDict;
if (health != 100)
initDict.Add(new HealthInit(health));
actor.Add(new HealthInit(health));
if (facing != 0)
initDict.Add(new FacingInit(255 - facing));
actor.Add(new FacingInit(255 - facing));
if (section == "INFANTRY")
actor.Add(new SubCellInit((SubCell)Exts.ParseByte(parts[4])));