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

@@ -62,7 +62,7 @@ namespace OpenRA.Mods.RA
}
}
class Bridge: IRender, INotifyDamage
class Bridge: IRenderAsTerrain, INotifyDamage
{
static string cachedTileset;
static Cache<TileReference<ushort,byte>, Sprite> sprites;
@@ -131,7 +131,7 @@ namespace OpenRA.Mods.RA
return bridges.GetBridge(self.Location + new int2(offset[0], offset[1]));
}
public IEnumerable<Renderable> Render(Actor self)
public IEnumerable<Renderable> RenderAsTerrain(Actor self)
{
foreach (var t in TileSprites[currentTemplate])
yield return new Renderable(t.Value, Game.CellSize * t.Key, "terrain", Game.CellSize * t.Key.Y);