mirror of https://github.com/OpenTTD/OpenTTD
(svn r7976) -Fix: (SF 1629560) Rail vehicles can no longer enter tunnels or bridgeheads with wrong railtype
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)
|
static bool CheckCompatibleRail(const Vehicle *v, TileIndex tile)
|
||||||
{
|
{
|
||||||
switch (GetTileType(tile)) {
|
switch (GetTileType(tile)) {
|
||||||
|
case MP_TUNNELBRIDGE:
|
||||||
case MP_RAILWAY:
|
case MP_RAILWAY:
|
||||||
case MP_STATION:
|
case MP_STATION:
|
||||||
// normal tracks, jump to owner check
|
// normal tracks, jump to owner check
|
||||||
|
|
Loading…
Reference in New Issue