mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-01 03:48:43 +00:00
(svn r7976) -Fix: (SF 1629560) Rail vehicles can no longer enter tunnels or bridgeheads with wrong railtype
This commit is contained in:
parent
852139d94b
commit
ecef824f93
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user