summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-11-23 16:24:09 +0100
committerErich Eckner <git@eckner.net>2021-07-21 19:01:20 +0200
commitb3aa511fc045025c5ab8237a57db87dd8fa071e4 (patch)
tree0f383e777fbf20c0b30a5a97897e9bf462309efd
parentf7219ee7a5af8587ed29afdd98729a0398ffea7c (diff)
downloadopenttd-sloped-stations.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.cpp2
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;
}
}