summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-02-21 22:02:10 +0000
committerrubidium <rubidium@openttd.org>2007-02-21 22:02:10 +0000
commitfd4a0dafc2b59930fd313a281f2851d8e4c75aba (patch)
tree03db1110e3f3ef08306e1798e1e60765f027a69a /src
parentf24122ba3db6e6afdfcc9adfeee3cd1ecc3087e3 (diff)
downloadopenttd-fd4a0dafc2b59930fd313a281f2851d8e4c75aba.tar.xz
(svn r8837) -Fix [FS#626]: drive through stations did not connect to neighbouring roads (mart3p).
Diffstat (limited to 'src')
-rw-r--r--src/road_gui.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/road_gui.cpp b/src/road_gui.cpp
index 2ca823247..8bcca6a8d 100644
--- a/src/road_gui.cpp
+++ b/src/road_gui.cpp
@@ -84,7 +84,9 @@ void CcRoadDepot(bool success, TileIndex tile, uint32 p1, uint32 p2)
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));
}
}