Mercurial > hg > openttd
changeset 6102:02d711c318c9 draft
(svn r8837) -Fix [FS#626]: drive through stations did not connect to neighbouring roads (mart3p).
author | rubidium <rubidium@openttd.org> |
---|---|
date | Wed, 21 Feb 2007 22:02:10 +0000 |
parents | e9a243908c20 |
children | e3a3a903fa28 |
files | src/road_gui.cpp |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/road_gui.cpp +++ b/src/road_gui.cpp @@ -84,7 +84,9 @@ if (success) { SndPlayTileFx(SND_1F_SPLAT, tile); 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)); } }