mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-05 02:36:20 +01:00
(svn r8837) -Fix [FS#626]: drive through stations did not connect to neighbouring roads (mart3p).
This commit is contained in:
parent
f24122ba3d
commit
fd4a0dafc2
@ -84,7 +84,9 @@ void CcRoadDepot(bool success, TileIndex tile, uint32 p1, uint32 p2)
|
|||||||
if (success) {
|
if (success) {
|
||||||
SndPlayTileFx(SND_1F_SPLAT, tile);
|
SndPlayTileFx(SND_1F_SPLAT, tile);
|
||||||
ResetObjectToPlace();
|
ResetObjectToPlace();
|
||||||
if (!HASBIT(p2, 1)) BuildRoadOutsideStation(tile, (DiagDirection)p1);
|
BuildRoadOutsideStation(tile, (DiagDirection)p1);
|
||||||
|
/* For a drive-through road stop build connecting road for other entrance */
|
||||||
|
if (HASBIT(p2, 1)) BuildRoadOutsideStation(tile, ReverseDiagDir((DiagDirection)p1));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user