Replace CenterLocationInit -> CenterPositionInit.

This commit is contained in:
Paul Chote
2013-09-21 11:46:57 +12:00
parent 4df9fc1acc
commit 27e4bbf1cb
3 changed files with 7 additions and 7 deletions

View File

@@ -42,7 +42,7 @@ namespace OpenRA.Mods.RA
this.self = init.self;
TopLeft = init.Get<LocationInit, CPos>();
CenterPosition = init.Contains<CenterLocationInit>() ? init.Get<CenterLocationInit, PPos>().ToWPos(0) : TopLeft.CenterPosition;
CenterPosition = init.Contains<CenterPositionInit>() ? init.Get<CenterPositionInit, WPos>() : TopLeft.CenterPosition;
Facing = init.Contains<FacingInit>() ? init.Get<FacingInit, int>() : 128;
var speed = init.Contains<HuskSpeedInit>() ? init.Get<HuskSpeedInit, int>() : 0;