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.
This commit is contained in:
Jonathan G Rennison 2017-02-16 22:11:41 +00:00
parent a4338ee97f
commit 987e752cee

View File

@ -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