mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r10308) -Codechange: some "cleanup" chunks from B. N. SmatZ!' work on fixing FS#119.
This commit is contained in:
parent
b17b9351dd
commit
1caa0f7fb7
|
@ -252,7 +252,7 @@ void DrawFoundation(TileInfo *ti, uint f)
|
|||
if (f < 15) {
|
||||
/* leveled foundation
|
||||
* Use the original slope sprites if NW and NE borders should be visible */
|
||||
if (sprite_base == SPR_SLOPES_BASE - 15) sprite_base = SPR_FOUNDATION_BASE;
|
||||
if (sprite_base == SPR_SLOPES_BASE - 15) sprite_base = SPR_FOUNDATION_BASE;
|
||||
|
||||
AddSortableSpriteToDraw(sprite_base + f, PAL_NONE, ti->x, ti->y, 16, 16, 7, ti->z);
|
||||
ti->z += TILE_HEIGHT;
|
||||
|
|
|
@ -1289,9 +1289,6 @@ static void DrawTrackBits(TileInfo* ti, TrackBits track)
|
|||
if (track & TRACK_BIT_LEFT) DrawGroundSprite(rti->base_sprites.single_w, PAL_NONE);
|
||||
if (track & TRACK_BIT_RIGHT) DrawGroundSprite(rti->base_sprites.single_e, PAL_NONE);
|
||||
}
|
||||
|
||||
if (GetRailType(ti->tile) == RAILTYPE_ELECTRIC) DrawCatenary(ti);
|
||||
|
||||
}
|
||||
|
||||
static void DrawSignals(TileIndex tile, TrackBits rails)
|
||||
|
@ -1340,6 +1337,8 @@ static void DrawTile_Track(TileInfo *ti)
|
|||
|
||||
if (HASBIT(_display_opt, DO_FULL_DETAIL)) DrawTrackDetails(ti);
|
||||
|
||||
if (GetRailType(ti->tile) == RAILTYPE_ELECTRIC) DrawCatenary(ti);
|
||||
|
||||
if (HasSignals(ti->tile)) DrawSignals(ti->tile, rails);
|
||||
} else {
|
||||
/* draw depot/waypoint */
|
||||
|
|
|
@ -1004,7 +1004,7 @@ static void DrawTile_TunnelBridge(TileInfo *ti)
|
|||
* it doesn't disappear behind it
|
||||
*/
|
||||
AddSortableSpriteToDraw(
|
||||
image, pal, ti->x, ti->y, 16, 16, ti->tileh == SLOPE_FLAT ? 0 : 8, ti->z
|
||||
image, pal, ti->x, ti->y, 16, 16, ti->tileh == SLOPE_FLAT ? 0 : 1, ti->z
|
||||
);
|
||||
|
||||
if (GetBridgeTransportType(ti->tile) == TRANSPORT_ROAD) {
|
||||
|
@ -1026,6 +1026,8 @@ static void DrawTile_TunnelBridge(TileInfo *ti)
|
|||
}
|
||||
|
||||
DrawBridgeMiddle(ti);
|
||||
} else {
|
||||
NOT_REACHED();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue