From 25a63ec7af6fadb2d33ef84f79597c14b10e7f39 Mon Sep 17 00:00:00 2001 From: celestar Date: Fri, 2 Jun 2006 13:05:41 +0000 Subject: (svn r5070) Merged the bridge branch -Feature: Bridges can now be placed above: Any railway track combination (excluding depots and waypoints) Any road combination (excluding depots) Clear tiles (duh), including fields Tunnel entrances Bridge heads Thanks to Tron for idea and implementation, KUDr for the yapf synchronization and many others for hours of testing There are still a number of visual problems remaining, especially when electric railways are on or under the bridge. DO NOT REPORT THOSE BUGS FOR THE TIME BEING please. --- yapf/yapf_road.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'yapf/yapf_road.cpp') diff --git a/yapf/yapf_road.cpp b/yapf/yapf_road.cpp index 3f2a9fe40..5bf679b56 100644 --- a/yapf/yapf_road.cpp +++ b/yapf/yapf_road.cpp @@ -423,7 +423,9 @@ uint YapfRoadVehDistanceToTile(const Vehicle* v, TileIndex tile) Depot* YapfFindNearestRoadDepot(const Vehicle *v) { TileIndex tile = v->tile; +#if 0 /* NOT NEEDED, function does/did nothing */ if (v->u.road.state == 255) tile = GetVehicleOutOfTunnelTile(v); +#endif Trackdir trackdir = GetVehicleTrackdir(v); if ((GetTileTrackStatus(tile, TRANSPORT_ROAD) & TrackdirToTrackdirBits(trackdir)) == 0) return NULL; -- cgit v1.2.3-54-g00ecf