mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-08 07:21:53 +00:00
(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.
This commit is contained in:
parent
f669101560
commit
b12205697b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user