Fix z-offset for muzzle flashes. Fixes #3667.

This commit is contained in:
Paul Chote
2013-08-11 12:42:35 +12:00
parent 8271e5ed63
commit cc44139eb1

View File

@@ -58,7 +58,8 @@ namespace OpenRA.Mods.RA.Render
anims.Add(barrel,
new AnimationWithOffset(muzzleFlash,
() => arm.MuzzleOffset(self, barrel),
() => !visible[barrel]));
() => !visible[barrel],
p => WithTurret.ZOffsetFromCenter(self, p, 2)));
}
}