1
0
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:
rubidium
2007-05-25 11:01:44 +00:00
parent 9060ab4af1
commit d234e97f8b
3 changed files with 10 additions and 2 deletions

View File

@@ -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 */