Use ExtraData for SetStance and SetUnitStance.

This commit is contained in:
Paul Chote
2014-06-21 22:06:46 +12:00
parent 7d24053f52
commit 2af123034d
4 changed files with 7 additions and 6 deletions

View File

@@ -237,7 +237,7 @@ namespace OpenRA.Network
return;
var targetPlayer = order.Player.World.Players.FirstOrDefault(p => p.InternalName == order.TargetString);
var newStance = (Stance)order.TargetLocation.X;
var newStance = (Stance)order.ExtraData;
SetPlayerStance(world, order.Player, targetPlayer, newStance);