Fix turret facings for GTWR etc. Fixes #3610.

This commit is contained in:
Paul Chote
2013-08-03 11:47:25 +12:00
parent deb03e7a02
commit 03e09e25bb
7 changed files with 24 additions and 14 deletions

View File

@@ -48,7 +48,7 @@ namespace OpenRA.Mods.RA.Render
// Work around a bogus crash
anim.PlayRepeating( NormalizeSequence(self, "idle") );
self.Trait<IBodyOrientation>().QuantizedFacings = anim.CurrentSequence.Facings;
self.Trait<IBodyOrientation>().SetAutodetectedFacings(anim.CurrentSequence.Facings);
// Can't call Complete() directly from ctor because other traits haven't been inited yet
if (self.Info.Traits.Get<RenderBuildingInfo>().HasMakeAnimation && !init.Contains<SkipMakeAnimsInit>())