branch | custombridgeheads |
changeset 5651 | 335d9bd345b0 |
parent 5650 | aefc131bf5ce |
--- a/src/bridge_cmd.cpp Mon Jan 15 20:14:06 2007 +0000 +++ b/src/bridge_cmd.cpp Sun Mar 11 09:28:58 2007 +0000 @@ -1018,7 +1018,7 @@ if (v->direction == DiagDirToDir(ReverseDiagDir(dir))) { /* We are entering the bridge head from the bridge itself */ - if (v->u.rail.track == TRACK_BIT_WORMHOLE) { + if (v->u.rail.track == TRACK_BIT_WORMHOLE && (tile == TileVirtXY(v->x_pos, v->y_pos))) { /* Get the vehicle out of the wormhole, the track will be chosen later by the pathfinder */ v->tile = tile;