(svn r7976) -Fix: (SF 1629560) Rail vehicles can no longer enter tunnels or bridgeheads with wrong railtype

This commit is contained in:
celestar 2007-01-08 10:36:45 +00:00
parent 852139d94b
commit ecef824f93
1 changed files with 1 additions and 0 deletions

View File

@ -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