(svn r8868) -Fix (r8715): road vehicles could not overtake anymore in some directions (mart3p).
authorrubidium
Fri, 23 Feb 2007 22:14:14 +0000
changeset 6457 2c447a703ec6
parent 6456 2b9af36fe022
child 6458 5cd016e1f018
(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;