# HG changeset patch # User rubidium # Date 2011-02-02 22:13:13 # Node ID dee98d6b5ad324308ebce2603e5db32d8b044331 # Parent ef67da6740661d65277d14c2555a9f3ae8afbe50 (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 diff --git a/src/roadveh_cmd.cpp b/src/roadveh_cmd.cpp --- a/src/roadveh_cmd.cpp +++ b/src/roadveh_cmd.cpp @@ -1114,6 +1114,9 @@ static bool IndividualRoadVehicleControl 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