mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-03 12:59:33 +00:00
(svn r11461) -Fix [FS#1449] (r11449): a bus turning around in a station could case an assertion error. Patch by divide.
This commit is contained in:
parent
56f332fafd
commit
b1393d1169
@ -1682,8 +1682,8 @@ again:
|
|||||||
|
|
||||||
uint turn_around_start_frame = RVC_TURN_AROUND_START_FRAME;
|
uint turn_around_start_frame = RVC_TURN_AROUND_START_FRAME;
|
||||||
|
|
||||||
RoadBits tram = GetRoadBits(v->tile, ROADTYPE_TRAM);
|
RoadBits tram;
|
||||||
if (v->u.road.roadtype == ROADTYPE_TRAM && CountBits(tram) == 1) {
|
if (v->u.road.roadtype == ROADTYPE_TRAM && CountBits(tram = GetRoadBits(v->tile, ROADTYPE_TRAM)) == 1) {
|
||||||
/*
|
/*
|
||||||
* The tram is turning around with one tram 'roadbit'. This means that
|
* The tram is turning around with one tram 'roadbit'. This means that
|
||||||
* it is using the 'big' corner 'drive data'. However, to support the
|
* it is using the 'big' corner 'drive data'. However, to support the
|
||||||
|
Loading…
Reference in New Issue
Block a user