mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r11524) -Fix [FS#1485]: assertion when tram reversed at a station.
This commit is contained in:
parent
bdc7fd2d76
commit
77b6a2674e
|
@ -1689,7 +1689,7 @@ again:
|
|||
uint turn_around_start_frame = RVC_TURN_AROUND_START_FRAME;
|
||||
|
||||
RoadBits tram;
|
||||
if (v->u.road.roadtype == ROADTYPE_TRAM && CountBits(tram = GetRoadBits(v->tile, ROADTYPE_TRAM)) == 1) {
|
||||
if (v->u.road.roadtype == ROADTYPE_TRAM && CountBits(tram = GetAnyRoadBits(v->tile, ROADTYPE_TRAM)) == 1) {
|
||||
/*
|
||||
* The tram is turning around with one tram 'roadbit'. This means that
|
||||
* it is using the 'big' corner 'drive data'. However, to support the
|
||||
|
|
Loading…
Reference in New Issue