From 48965f84b66f33d2f03a234f690adc8831a188e6 Mon Sep 17 00:00:00 2001 From: darkvater Date: Tue, 10 Aug 2004 14:50:42 +0000 Subject: [PATCH] (svn r6) -Fix [1006530] BuildRoadOutsideStation fix. Fix bug [994720] road depot - bus/lorry station (Truelight+Darkvater :P ) --- road_gui.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/road_gui.c b/road_gui.c index d2fe38b28d..cbf2c2a1ea 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); } }