From 987e752cee0fbd89f0357571ca475e5c51a200fc Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Thu, 16 Feb 2017 22:11:41 +0000 Subject: [PATCH] Fix articulated trams decoupling when turning around In the case where the front of the tram starts turning due to a non-waitable dead-end, and before the next vehicle part can turn the dead-end is removed. --- 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 5ae5a2a5e4..55d2a4ea09 100644 --- a/src/roadveh_cmd.cpp +++ b/src/roadveh_cmd.cpp @@ -1245,7 +1245,7 @@ again: return false; } }; - if ((v->Previous() != NULL && v->Previous()->tile == tile) || tile_turn_ok()) { + if ((v->Previous() != NULL && v->Previous()->tile == tile) || (v->IsFrontEngine() && tile_turn_ok())) { /* * Taking the 'big' corner for trams only happens when: * - The previous vehicle in this (articulated) tram chain is