From 4d781122821f3e834ad668f5616e32f4de2465cf Mon Sep 17 00:00:00 2001 From: rubidium Date: Sun, 20 Dec 2009 11:22:36 +0000 Subject: (svn r18561) -Fix [FS#3390]: Do try to overtake a vehicle in a station as overtaking in a station is not allowed --- src/roadveh_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/roadveh_cmd.cpp b/src/roadveh_cmd.cpp index 322b33c0b..99a0f9f6a 100644 --- a/src/roadveh_cmd.cpp +++ b/src/roadveh_cmd.cpp @@ -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; -- cgit v1.2.3-70-g09d2