(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 7ec428fe7e
commit ce84250249
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 */