summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordarkvater <darkvater@openttd.org>2004-08-10 14:50:42 +0000
committerdarkvater <darkvater@openttd.org>2004-08-10 14:50:42 +0000
commit48965f84b66f33d2f03a234f690adc8831a188e6 (patch)
tree9d5e5d1c390fe035a1e3548c484477fb792ba3fd
parenta32d8553e7166bd95d355c633307b9782402868a (diff)
downloadopenttd-48965f84b66f33d2f03a234f690adc8831a188e6.tar.xz
(svn r6) -Fix [1006530] BuildRoadOutsideStation fix. Fix bug [994720] road depot - bus/lorry station (Truelight+Darkvater :P )
-rw-r--r--road_gui.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/road_gui.c b/road_gui.c
index d2fe38b28..cbf2c2a1e 100644
--- a/road_gui.c
+++ b/road_gui.c
@@ -61,7 +61,8 @@ static void BuildRoadOutsideStation(uint tile, int direction)
{
static const byte _roadbits_by_dir[4] = {2,1,8,4};
tile += _tileoffs_by_dir[direction];
- if (IS_TILETYPE(tile, MP_STREET)) {
+ // if there is a roadpiece just outside of the station entrance, build a connecting route
+ if (IS_TILETYPE(tile, MP_STREET) && !(_map5[tile]&0x20)) {
DoCommandP(tile, _roadbits_by_dir[direction], 0, NULL, CMD_BUILD_ROAD);
}
}