Draw turrets, spinners, rotors at ZOffset +1 relative to the body.

This commit is contained in:
Paul Chote
2013-05-24 18:18:47 +12:00
parent d048d083c4
commit a11e403084
4 changed files with 17 additions and 7 deletions

View File

@@ -34,7 +34,7 @@ namespace OpenRA.Mods.RA.Render
rotorAnim.PlayRepeating("rotor");
rs.anims.Add(info.Id, new AnimationWithOffset(rotorAnim,
() => rs.LocalToWorld(info.Offset.Rotate(rs.QuantizeOrientation(self, self.Orientation))),
null, 1));
null, p => WithTurret.ZOffsetFromCenter(self, p, 1)));
}
public void Tick(Actor self)