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
commita2ecc3cc645b61e2ca2087c8b92995bd9bf51c30 (patch)
tree03db1110e3f3ef08306e1798e1e60765f027a69a /src
parentf1ee924fc5c4781614c3d5405e8f4aa27464a57c (diff)
downloadopenttd-a2ecc3cc645b61e2ca2087c8b92995bd9bf51c30.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));
}
}