fix #436 bridges in wrong place in render sequence

This commit is contained in:
Chris Forbes
2010-12-20 19:43:25 +13:00
parent 7d61e75862
commit dcec748911
3 changed files with 7 additions and 2 deletions

View File

@@ -77,6 +77,9 @@ namespace OpenRA.Graphics
Game.Renderer.EnableScissor(bounds.Left, bounds.Top, bounds.Width, bounds.Height);
terrainRenderer.Draw(this, Game.viewport);
foreach (var a in world.traitDict.ActorsWithTraitMultiple<IRenderAsTerrain>(world))
foreach (var r in a.Trait.RenderAsTerrain(a.Actor))
r.Sprite.DrawAt(r.Pos, this.GetPaletteIndex(r.Palette), r.Scale);
foreach (var a in world.Selection.Actors)
if (!a.Destroyed)