From ecef824f93e4388f6378cff1d419906a5e0f73f5 Mon Sep 17 00:00:00 2001 From: celestar Date: Mon, 8 Jan 2007 10:36:45 +0000 Subject: (svn r7976) -Fix: (SF 1629560) Rail vehicles can no longer enter tunnels or bridgeheads with wrong railtype --- src/train_cmd.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/train_cmd.c') diff --git a/src/train_cmd.c b/src/train_cmd.c index c1c5746bb..074d92ce7 100644 --- a/src/train_cmd.c +++ b/src/train_cmd.c @@ -2814,6 +2814,7 @@ static int GetDirectionToVehicle(const Vehicle *v, int x, int y) static bool CheckCompatibleRail(const Vehicle *v, TileIndex tile) { switch (GetTileType(tile)) { + case MP_TUNNELBRIDGE: case MP_RAILWAY: case MP_STATION: // normal tracks, jump to owner check -- cgit v1.2.3-70-g09d2