diff options
author | rubidium <rubidium@openttd.org> | 2009-07-17 20:40:29 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-07-17 20:40:29 +0000 |
commit | c9cab7ba1967a42b90b44bca865db33c66a20c72 (patch) | |
tree | dd85a92a79169b853a364910d8c2d3cd497caadb /src/rail_cmd.cpp | |
parent | 72d6c3a9ad5013555607b7f90f1f0f9dd5faba0b (diff) | |
download | openttd-c9cab7ba1967a42b90b44bca865db33c66a20c72.tar.xz |
(svn r16862) -Codechange: make waypoints use the same system of station station spec lists.
Diffstat (limited to 'src/rail_cmd.cpp')
-rw-r--r-- | src/rail_cmd.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/rail_cmd.cpp b/src/rail_cmd.cpp index 42e3a6d78..a67b553b1 100644 --- a/src/rail_cmd.cpp +++ b/src/rail_cmd.cpp @@ -1938,9 +1938,11 @@ static void DrawTile_Track(TileInfo *ti) } } else { /* look for customization */ - const StationSpec *statspec = GetWaypointByTile(ti->tile)->spec.spec; + const Waypoint *wp = GetWaypointByTile(ti->tile); + + if (wp->num_specs != 0) { + const StationSpec *statspec = wp->speclist->spec; - if (statspec != NULL) { /* emulate station tile - open with building */ const Station *st = ComposeWaypointStation(ti->tile); uint gfx = 2; |