summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorcelestar <celestar@openttd.org>2007-01-08 10:36:45 +0000
committercelestar <celestar@openttd.org>2007-01-08 10:36:45 +0000
commit8da2dbdf3b2ab86d2ade8731da4a410310413b07 (patch)
treea767c74a8161724623ddf314911ccb18ff4ff0c5 /src
parent854b7647f022bc32998b188c40bd3d242ce4e852 (diff)
downloadopenttd-8da2dbdf3b2ab86d2ade8731da4a410310413b07.tar.xz
(svn r7976) -Fix: (SF 1629560) Rail vehicles can no longer enter tunnels or bridgeheads with wrong railtype
Diffstat (limited to 'src')
-rw-r--r--src/train_cmd.c1
1 files changed, 1 insertions, 0 deletions
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