Replace scaleSizeWithZoom with SpriteAnnotation.

This commit is contained in:
Paul Chote
2019-09-15 11:37:53 +01:00
committed by abcdefg30
parent e772adb0a9
commit 7937383bf4
8 changed files with 60 additions and 15 deletions

View File

@@ -126,7 +126,7 @@ namespace OpenRA.Mods.Common.Traits.Render
if ((Info.TerrainTypes.Count == 0 || Info.TerrainTypes.Contains(type)) && !string.IsNullOrEmpty(Info.Image))
self.World.AddFrameEndTask(w => w.Add(new SpriteEffect(pos, self.World, Info.Image,
Info.Sequences.Random(Game.CosmeticRandom), Info.Palette, Info.VisibleThroughFog, false, spawnFacing)));
Info.Sequences.Random(Game.CosmeticRandom), Info.Palette, Info.VisibleThroughFog, spawnFacing)));
cachedPosition = self.CenterPosition;
cachedFacing = facing != null ? facing.Facing : 0;