Pass WorldRenderer to AnimationWithOffset.OffsetFunc.

This commit is contained in:
Paul Chote
2013-03-31 19:56:11 +13:00
parent 7c21459b48
commit 2f80cd5f92
12 changed files with 16 additions and 16 deletions

View File

@@ -33,7 +33,7 @@ namespace OpenRA.Mods.RA.Render
var turret = new Turret(info.Offset);
rs.anims.Add(info.Id, new AnimationWithOffset(
rotorAnim,
() => turret.PxPosition(self, facing).ToFloat2(),
wr => turret.PxPosition(self, facing).ToFloat2(),
null ) { ZOffset = 1 } );
}