Changeset - r17197:dee98d6b5ad3
[Not reviewed]
master
0 1 0
rubidium - 14 years ago 2011-02-02 22:13:13
rubidium@openttd.org
(svn r21946) -Fix [FS#4447]: assertion/funny behaviour when a road vehicle reverses while overtaking, so abort the overtake attempt when reversing the road vehicle
1 file changed with 3 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/roadveh_cmd.cpp
Show inline comments
 
@@ -1111,12 +1111,15 @@ static bool IndividualRoadVehicleControl
 
			return false;
 
		}
 

	
 
again:
 
		uint start_frame = RVC_DEFAULT_START_FRAME;
 
		if (IsReversingRoadTrackdir(dir)) {
 
			/* When turning around we can't be overtaking. */
 
			v->overtaking = 0;
 

	
 
			/* Turning around */
 
			if (v->roadtype == ROADTYPE_TRAM) {
 
				/* Determine the road bits the tram needs to be able to turn around
 
				 * using the 'big' corner loop. */
 
				RoadBits needed;
 
				switch (dir) {
0 comments (0 inline, 0 general)