mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-07 06:46:43 +00:00
(svn r8868) -Fix (r8715): road vehicles could not overtake anymore in some directions (mart3p).
This commit is contained in:
parent
9cdf6fdc7e
commit
433b8054e9
@ -972,7 +972,7 @@ static void RoadVehCheckOvertake(Vehicle *v, Vehicle *u)
|
|||||||
if (v->direction != u->direction || !(v->direction & 1)) 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 */
|
/* 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;
|
tt = GetTileTrackStatus(v->tile, TRANSPORT_ROAD) & 0x3F;
|
||||||
if ((tt & 3) == 0) return;
|
if ((tt & 3) == 0) return;
|
||||||
|
Loading…
Reference in New Issue
Block a user