Fix depth-enabled shroud rendering.

This commit is contained in:
Paul Chote
2016-04-08 10:56:13 -04:00
parent 2915db67c4
commit e54917a0b2
2 changed files with 3 additions and 1 deletions

View File

@@ -158,7 +158,7 @@ namespace OpenRA.Mods.Common.Traits
foreach (var uv in w.Map.AllCells.MapCoords)
{
var pos = w.Map.CenterOfCell(uv.ToCPos(map));
var screen = wr.ScreenPosition(pos - new WVec(0, 0, pos.Z));
var screen = wr.Screen3DPosition(pos - new WVec(0, 0, pos.Z));
var variant = (byte)Game.CosmeticRandom.Next(info.ShroudVariants.Length);
tileInfos[uv] = new TileInfo(screen, variant);
}