(svn r8868) -Fix (r8715): road vehicles could not overtake anymore in some directions (mart3p).

This commit is contained in:
rubidium 2007-02-23 22:14:14 +00:00
parent 9cdf6fdc7e
commit 433b8054e9
1 changed files with 1 additions and 1 deletions

View File

@ -972,7 +972,7 @@ static void RoadVehCheckOvertake(Vehicle *v, Vehicle *u)
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 */
if (v->u.road.state >= RVS_IN_ROAD_STOP || !IsStraightRoadTrackdir((Trackdir)(v->u.road.state & RVSB_TRACKDIR_MASK))) return;
if (v->u.road.state >= RVSB_IN_ROAD_STOP || !IsStraightRoadTrackdir((Trackdir)(v->u.road.state & RVSB_TRACKDIR_MASK))) return;
tt = GetTileTrackStatus(v->tile, TRANSPORT_ROAD) & 0x3F;
if ((tt & 3) == 0) return;