mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-14 18:19:11 +00:00
(svn r9919) -Codechange: prepare some more places for more road types.
This commit is contained in:
@@ -957,6 +957,9 @@ static void RoadVehCheckOvertake(Vehicle *v, Vehicle *u)
|
||||
return;
|
||||
}
|
||||
|
||||
/* Trams can't overtake other trams */
|
||||
if (v->u.road.roadtype == ROADTYPE_TRAM) return;
|
||||
|
||||
if (v->direction != u->direction || !(v->direction & 1)) return;
|
||||
|
||||
/* Check if vehicle is in a road stop, depot, tunnel or bridge or not on a straight road */
|
||||
|
Reference in New Issue
Block a user