From b3aa511fc045025c5ab8237a57db87dd8fa071e4 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Fri, 23 Nov 2018 16:24:09 +0100 Subject: src/ground_vehicle.hpp: fix failing assert - do not recalculate slope when in road stop bay - it fails on slopes --- src/roadveh_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } } -- cgit v1.2.3-70-g09d2