mirror of https://github.com/OpenTTD/OpenTTD
(svn r18561) -Fix [FS#3390]: Do try to overtake a vehicle in a station as overtaking in a station is not allowed
parent
468986d41a
commit
4d78112282
|
@ -862,7 +862,7 @@ static void RoadVehCheckOvertake(RoadVehicle *v, RoadVehicle *u)
|
|||
if (v->roadtype == ROADTYPE_TRAM) return;
|
||||
|
||||
/* Don't overtake in stations */
|
||||
if (IsTileType(v->tile, MP_STATION)) return;
|
||||
if (IsTileType(v->tile, MP_STATION) || IsTileType(u->tile, MP_STATION)) return;
|
||||
|
||||
/* For now, articulated road vehicles can't overtake anything. */
|
||||
if (v->HasArticulatedPart()) return;
|
||||
|
|
Loading…
Reference in New Issue