--- a/yapf/yapf_costrail.hpp Mon Jan 01 19:44:02 2007 +0000
+++ b/yapf/yapf_costrail.hpp Mon Jan 01 20:13:03 2007 +0000
@@ -200,6 +200,7 @@
RailType rail_type = GetTileRailType(tile, trackdir);
// detect exit from bridge wormhole
+ Trackdir intermediate_trackdir = INVALID_TRACKDIR;
if (IsBridgeTile(tile) && TrackdirToExitdir(ReverseTrackdir(trackdir)) == GetBridgeRampDirection(tile)) {
// we are jumping over bridge (possible now with custom bridge heads) we must add the cost of skipped tiles
int skipped_tiles = DistanceManhattan(prev_tile, tile) - 1;