(svn r7976) -Fix: (SF 1629560) Rail vehicles can no longer enter tunnels or bridgeheads with wrong railtype
authorcelestar
Mon, 08 Jan 2007 10:36:45 +0000
changeset 5566 0593a6963881
parent 5565 0d9d0d9abafc
child 5567 fe00ab53909b
(svn r7976) -Fix: (SF 1629560) Rail vehicles can no longer enter tunnels or bridgeheads with wrong railtype
src/train_cmd.c
--- a/src/train_cmd.c	Mon Jan 08 08:16:01 2007 +0000
+++ b/src/train_cmd.c	Mon Jan 08 10:36:45 2007 +0000
@@ -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