changeset 5566:5785c3962c2a draft

(svn r7976) -Fix: (SF 1629560) Rail vehicles can no longer enter tunnels or bridgeheads with wrong railtype
author celestar <celestar@openttd.org>
date Mon, 08 Jan 2007 10:36:45 +0000
parents 0049c0a3eb06
children 6e6ad5c44c35
files src/train_cmd.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/train_cmd.c
+++ b/src/train_cmd.c
@@ -2814,6 +2814,7 @@
 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