Fix aircraft shadow render order.

This commit is contained in:
Paul Chote
2013-05-23 21:25:11 +12:00
parent f7aca32e0e
commit 25dd8d9fa7
3 changed files with 4 additions and 4 deletions

View File

@@ -23,8 +23,8 @@ namespace OpenRA.Graphics
public int Compare(IRenderable x, IRenderable y)
{
var xOrder = wr.ScreenZPosition(x.Pos) + x.ZOffset;
var yOrder = wr.ScreenZPosition(y.Pos) + y.ZOffset;
var xOrder = wr.ScreenZPosition(x.Pos, x.ZOffset);
var yOrder = wr.ScreenZPosition(y.Pos, y.ZOffset);
return xOrder.CompareTo(yOrder);
}
}