From 547421496ec06e77b1897d2ba8df2140bd073022 Mon Sep 17 00:00:00 2001 From: rubidium Date: Wed, 2 Feb 2011 22:13:13 +0000 Subject: [PATCH] (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 --- src/roadveh_cmd.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/roadveh_cmd.cpp b/src/roadveh_cmd.cpp index 825e9ac3f5..b94bbbb9b2 100644 --- a/src/roadveh_cmd.cpp +++ b/src/roadveh_cmd.cpp @@ -1114,6 +1114,9 @@ static bool IndividualRoadVehicleController(RoadVehicle *v, const RoadVehicle *p 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