Convert BaseProvider range check to world coords.
This commit is contained in:
@@ -49,10 +49,12 @@ namespace OpenRA.Mods.RA.Render
|
||||
: base(init, info)
|
||||
{
|
||||
roof = new Animation(GetImage(init.self));
|
||||
|
||||
var bi = init.self.Info.Traits.Get<BuildingInfo>();
|
||||
|
||||
// Additional 512 units move from center -> top of cell
|
||||
var offset = FootprintUtils.CenterOffset(bi).Y + 512;
|
||||
anims.Add("roof", new AnimationWithOffset(roof, null,
|
||||
() => !buildComplete, FootprintUtils.CenterOffset(bi).Y));
|
||||
() => !buildComplete, offset));
|
||||
}
|
||||
|
||||
public void BuildingComplete( Actor self )
|
||||
|
||||
Reference in New Issue
Block a user