Use SpriteRenderables for tile overlays.

This commit is contained in:
Paul Chote
2013-09-21 10:26:03 +12:00
parent 8c0da26ae1
commit 3002c4b77d
3 changed files with 7 additions and 7 deletions

View File

@@ -112,7 +112,8 @@ namespace OpenRA.Mods.RA.Orders
foreach (var c in cells)
{
var tile = c.Value ? buildOk : buildBlocked;
tile.DrawAt(wr.ScreenPxPosition(c.Key.CenterPosition) - 0.5f * tile.size, pal);
new SpriteRenderable(tile, c.Key.CenterPosition,
WVec.Zero, -511, pal, 1f, true).Render(wr);
}
}