Migrate frozen actors from ExtraData to Target.

This commit is contained in:
Paul Chote
2017-10-15 19:37:15 +00:00
committed by Pavel Penev
parent 29c423772f
commit 5f9a67ed87
6 changed files with 26 additions and 88 deletions

View File

@@ -74,9 +74,7 @@ namespace OpenRA
TargetString = targetString;
Queued = queued;
ExtraLocation = extraLocation;
// TODO: remove FrozenActor ID after the various ResolveOrders that rely on it are updated
ExtraData = target.Type == TargetType.FrozenActor ? target.FrozenActor.ID : extraData;
ExtraData = extraData;
}
public static Order Deserialize(World world, BinaryReader r)