diff options
author | Erich Eckner <git@eckner.net> | 2018-11-23 16:24:09 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2021-07-21 19:01:20 +0200 |
commit | b3aa511fc045025c5ab8237a57db87dd8fa071e4 (patch) | |
tree | 0f383e777fbf20c0b30a5a97897e9bf462309efd | |
parent | f7219ee7a5af8587ed29afdd98729a0398ffea7c (diff) | |
download | openttd-b3aa511fc045025c5ab8237a57db87dd8fa071e4.tar.xz |
src/ground_vehicle.hpp: fix failing assert - do not recalculate slope when in road stop bay - it fails on slopessloped-stations
-rw-r--r-- | src/roadveh_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/roadveh_cmd.cpp b/src/roadveh_cmd.cpp index 86c2de78e..9c9265028 100644 --- a/src/roadveh_cmd.cpp +++ b/src/roadveh_cmd.cpp @@ -1505,7 +1505,7 @@ again: v->x_pos = x; v->y_pos = y; v->UpdatePosition(); - RoadZPosAffectSpeed(v, v->UpdateInclination(true, false)); + RoadZPosAffectSpeed(v, v->UpdateInclination(false, false)); return true; } } |