(svn r9919) -Codechange: prepare some more places for more road types.

This commit is contained in:
rubidium
2007-05-25 11:01:44 +00:00
parent 9060ab4af1
commit d234e97f8b
3 changed files with 10 additions and 2 deletions

View File

@@ -1048,6 +1048,10 @@ void DrawBridgeMiddle(const TileInfo* ti)
pal = psid->pal;
}
if (GetRailType(rampsouth) == RAILTYPE_ELECTRIC) {
DrawCatenary(ti);
}
/* draw roof, the component of the bridge which is logically between the vehicle and the camera */
if (axis == AXIS_X) {
y += 12;
@@ -1057,8 +1061,6 @@ void DrawBridgeMiddle(const TileInfo* ti)
if (image & SPRITE_MASK) AddSortableSpriteToDraw(image, pal, x, y, 1, 16, 0x28, z);
}
if (GetRailType(rampsouth) == RAILTYPE_ELECTRIC) DrawCatenary(ti);
psid++;
if (ti->z + 5 == z) {
/* draw poles below for small bridges */