Move proc light offset into sequences. Fixes #3391.

This commit is contained in:
Paul Chote
2013-06-20 17:59:27 +12:00
parent 98039abf1b
commit f376eb9b2a
2 changed files with 3 additions and 3 deletions

View File

@@ -18,8 +18,6 @@ namespace OpenRA.Mods.Cnc
{
class RenderBuildingRefineryInfo : RenderBuildingInfo
{
public readonly WVec Offset = new WVec(1365, 896, 0);
public override object Create(ActorInitializer init) { return new RenderBuildingRefinery(init, this); }
}
@@ -40,7 +38,7 @@ namespace OpenRA.Mods.Cnc
? (59 * playerResources.Ore) / (10 * playerResources.OreCapacity)
: 0);
anims.Add("lights", new AnimationWithOffset(lights, () => info.Offset, () => !buildComplete, 1024));
anims.Add("lights", new AnimationWithOffset(lights, null, () => !buildComplete, 1024));
}
public void BuildingComplete( Actor self )

View File

@@ -57,9 +57,11 @@ proc:
lights: proctwr
Start: 0
Length: 6
Offset: -32,-21
damaged-lights: proctwr
Start: 6
Length: 6
Offset: -32,-21
silo:
idle: