symmetry between reading and writing int2

This commit is contained in:
Chris Forbes
2010-11-23 13:06:37 +13:00
parent 2f74207bf6
commit 88398afba6
2 changed files with 7 additions and 6 deletions

View File

@@ -108,10 +108,7 @@ namespace OpenRA
if (TargetActor != null)
w.Write(UIntFromActor(TargetActor));
if (TargetLocation != int2.Zero)
{
w.Write(TargetLocation.X);
w.Write(TargetLocation.Y);
}
w.Write(TargetLocation);
if (TargetString != null)
w.Write(TargetString);