mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-02 09:40:35 +00:00
(svn r18405) -Fix (r18405): RVs didn't like to stop when the 'next' drive through station tile didn't have a compatible road type
This commit is contained in:
parent
0fed86a779
commit
556061ef6b
@ -1470,8 +1470,8 @@ again:
|
|||||||
if (IsDriveThroughStopTile(v->tile)) {
|
if (IsDriveThroughStopTile(v->tile)) {
|
||||||
TileIndex next_tile = TILE_ADD(v->tile, TileOffsByDir(v->direction));
|
TileIndex next_tile = TILE_ADD(v->tile, TileOffsByDir(v->direction));
|
||||||
|
|
||||||
/* Check if next inline bay is free */
|
/* Check if next inline bay is free and has compatible road. */
|
||||||
if (RoadStop::IsDriveThroughRoadStopContinuation(v->tile, next_tile)) {
|
if (RoadStop::IsDriveThroughRoadStopContinuation(v->tile, next_tile) && (GetRoadTypes(next_tile) & v->compatible_roadtypes) != 0) {
|
||||||
v->frame++;
|
v->frame++;
|
||||||
RoadZPosAffectSpeed(v, SetRoadVehPosition(v, x, y, false));
|
RoadZPosAffectSpeed(v, SetRoadVehPosition(v, x, y, false));
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user