diff options
author | rubidium <rubidium@openttd.org> | 2007-06-24 20:06:10 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-06-24 20:06:10 +0000 |
commit | 949fc3d78c06a32521d8b4617d892fae000a9b08 (patch) | |
tree | e72d8d2fea1039573b7b88c79454139708e0b609 /src/rail_cmd.cpp | |
parent | d92d65a99a481a51b83723e8ac36fddbcf815504 (diff) | |
download | openttd-949fc3d78c06a32521d8b4617d892fae000a9b08.tar.xz |
(svn r10308) -Codechange: some "cleanup" chunks from B. N. SmatZ!' work on fixing FS#119.
Diffstat (limited to 'src/rail_cmd.cpp')
-rw-r--r-- | src/rail_cmd.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/rail_cmd.cpp b/src/rail_cmd.cpp index 6dc6d36a6..dd852bb1f 100644 --- a/src/rail_cmd.cpp +++ b/src/rail_cmd.cpp @@ -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 */ |