summaryrefslogtreecommitdiff
path: root/src/train_cmd.c
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
commitecef824f93e4388f6378cff1d419906a5e0f73f5 (patch)
treea767c74a8161724623ddf314911ccb18ff4ff0c5 /src/train_cmd.c
parent852139d94b2616d93c368d77bc1bb658e86d3d33 (diff)
downloadopenttd-ecef824f93e4388f6378cff1d419906a5e0f73f5.tar.xz
(svn r7976) -Fix: (SF 1629560) Rail vehicles can no longer enter tunnels or bridgeheads with wrong railtype
Diffstat (limited to 'src/train_cmd.c')
-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