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

@@ -164,8 +164,7 @@ namespace OpenRA.Mods.RA.Widgets
if (at != null)
at.PredictedStance = nextStance;
// FIXME: Abuse of the type system here with `CPos`
return new Order("SetUnitStance", a, false) { TargetLocation = new CPos((int)nextStance, 0), SuppressVisualFeedback = true };
return new Order("SetUnitStance", a, false) { ExtraData = (uint)nextStance };
});
Game.Debug("Unit stance set to: {0}".F(nextStance));