(svn r8868) -Fix (r8715): road vehicles could not overtake anymore in some directions (mart3p).
authorrubidium
Fri, 23 Feb 2007 22:14:14 +0000
changeset 6131 eaeaa5da9989
parent 6130 8b969a6fcc50
child 6132 8b4edf37c5ff
(svn r8868) -Fix (r8715): road vehicles could not overtake anymore in some directions (mart3p).
src/roadveh_cmd.cpp
--- a/src/roadveh_cmd.cpp	Fri Feb 23 21:36:43 2007 +0000
+++ b/src/roadveh_cmd.cpp	Fri Feb 23 22:14:14 2007 +0000
@@ -972,7 +972,7 @@
 	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;