summaryrefslogtreecommitdiff
path: root/station_cmd.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-07-26 10:00:33 +0000
committertron <tron@openttd.org>2006-07-26 10:00:33 +0000
commit8ed7b09c52ed73af1570b46105b1f14847e6ed0b (patch)
treeec3851d27de39851406650838ae3498e24aca66e /station_cmd.c
parent0973dc78cd608ec086384c8bb505f478c7cd2a8e (diff)
downloadopenttd-8ed7b09c52ed73af1570b46105b1f14847e6ed0b.tar.xz
(svn r5615) Move GetStationTileForVehicle() to its only user
Diffstat (limited to 'station_cmd.c')
-rw-r--r--station_cmd.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/station_cmd.c b/station_cmd.c
index 5cdc4a231..42fa1b654 100644
--- a/station_cmd.c
+++ b/station_cmd.c
@@ -216,23 +216,6 @@ static Station* GetStationAround(TileIndex tile, int w, int h, StationID closest
return (closest_station == INVALID_STATION) ? NULL : GetStation(closest_station);
}
-TileIndex GetStationTileForVehicle(const Vehicle *v, const Station *st)
-{
- switch (v->type) {
- case VEH_Train: return st->train_tile;
- case VEH_Aircraft: return st->airport_tile;
- case VEH_Ship: return st->dock_tile;
- case VEH_Road:
- if (v->cargo_type == CT_PASSENGERS) {
- return (st->bus_stops != NULL) ? st->bus_stops->xy : 0;
- } else {
- return (st->truck_stops != NULL) ? st->truck_stops->xy : 0;
- }
- default:
- assert(false);
- return 0;
- }
-}
static bool CheckStationSpreadOut(Station *st, TileIndex tile, int w, int h)
{