From b12205697be112c0a03d8ff0128467cfdd734dbd Mon Sep 17 00:00:00 2001 From: rubidium Date: Tue, 26 Nov 2013 12:04:16 +0000 Subject: [PATCH] (svn r26118) -Fix-ish?: comparing the old Direction to the possibly new state containing a TrackDir... well comparing apples and pears. Occasionally they would be the same and occasionally not; at least without any logic behind it. Since the occasions that the false branch was taken never resulted in a bug report, I highly doubt that removing it completely affects anything... except the visual speed of cornering in a numer of corners (<50%) and visual speed in an old style road stop. --- src/roadveh_cmd.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/roadveh_cmd.cpp b/src/roadveh_cmd.cpp index aa4791bf7a..88bdb56225 100644 --- a/src/roadveh_cmd.cpp +++ b/src/roadveh_cmd.cpp @@ -1407,14 +1407,6 @@ again: if (new_dir != old_dir) { v->direction = new_dir; if (_settings_game.vehicle.roadveh_acceleration_model == AM_ORIGINAL) v->cur_speed -= v->cur_speed >> 2; - if (old_dir != v->state) { - /* The vehicle is in a road stop */ - v->UpdateInclination(false, true); - /* Note, return here means that the frame counter is not incremented - * for vehicles changing direction in a road stop. This causes frames to - * be repeated. (XXX) Is this intended? */ - return true; - } } /* If the vehicle is in a normal road stop and the frame equals the stop frame OR