diff options
author | rubidium <rubidium@openttd.org> | 2009-07-17 20:51:24 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-07-17 20:51:24 +0000 |
commit | d8f16ea1994ecebdb153c58350b3a044a6d43e57 (patch) | |
tree | 1af8506b6b3e5656b1ccbd30d75f04571c191306 /src/rail_cmd.cpp | |
parent | c9cab7ba1967a42b90b44bca865db33c66a20c72 (diff) | |
download | openttd-d8f16ea1994ecebdb153c58350b3a044a6d43e57.tar.xz |
(svn r16863) -Codechange: GetWaypointByTile -> Waypoint::GetByTile, like used for e.g. stations
Diffstat (limited to 'src/rail_cmd.cpp')
-rw-r--r-- | src/rail_cmd.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rail_cmd.cpp b/src/rail_cmd.cpp index a67b553b1..c2fe324b9 100644 --- a/src/rail_cmd.cpp +++ b/src/rail_cmd.cpp @@ -1938,7 +1938,7 @@ static void DrawTile_Track(TileInfo *ti) } } else { /* look for customization */ - const Waypoint *wp = GetWaypointByTile(ti->tile); + const Waypoint *wp = Waypoint::GetByTile(ti->tile); if (wp->num_specs != 0) { const StationSpec *statspec = wp->speclist->spec; @@ -2315,8 +2315,8 @@ static TrackStatus GetTileTrackStatus_Track(TileIndex tile, TransportType mode, static bool ClickTile_Track(TileIndex tile) { switch (GetRailTileType(tile)) { - case RAIL_TILE_DEPOT: ShowDepotWindow(tile, VEH_TRAIN); return true; - case RAIL_TILE_WAYPOINT: ShowWaypointWindow(GetWaypointByTile(tile)); return true; + case RAIL_TILE_DEPOT: ShowDepotWindow(tile, VEH_TRAIN); return true; + case RAIL_TILE_WAYPOINT: ShowWaypointWindow(Waypoint::GetByTile(tile)); return true; default: return false; } } |