StyleCop clean OpenRA.Game
This commit is contained in:
6
OpenRA.Mods.RA/Render/RenderBuildingWarFactory.cs
Executable file → Normal file
6
OpenRA.Mods.RA/Render/RenderBuildingWarFactory.cs
Executable file → Normal file
@@ -46,11 +46,11 @@ namespace OpenRA.Mods.RA.Traits
|
||||
public RenderBuildingWarFactory(ActorInitializer init, RenderBuildingInfo info)
|
||||
: base(init, info)
|
||||
{
|
||||
roof = new Animation(init.world, GetImage(init.self));
|
||||
var bi = init.self.Info.Traits.Get<BuildingInfo>();
|
||||
roof = new Animation(init.World, GetImage(init.Self));
|
||||
var bi = init.Self.Info.Traits.Get<BuildingInfo>();
|
||||
|
||||
// Additional 512 units move from center -> top of cell
|
||||
var offset = FootprintUtils.CenterOffset(init.world, bi).Y + 512;
|
||||
var offset = FootprintUtils.CenterOffset(init.World, bi).Y + 512;
|
||||
Add("roof", new AnimationWithOffset(roof, null,
|
||||
() => !buildComplete, offset));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user