(svn r6) -Fix [1006530] BuildRoadOutsideStation fix. Fix bug [994720] road depot - bus/lorry station (Truelight+Darkvater :P )
authordarkvater
Tue, 10 Aug 2004 14:50:42 +0000
changeset 5 539c9743d999
parent 4 cad62d5f9708
child 6 e9b56d50aa99
(svn r6) -Fix [1006530] BuildRoadOutsideStation fix. Fix bug [994720] road depot - bus/lorry station (Truelight+Darkvater :P )
road_gui.c
--- a/road_gui.c	Tue Aug 10 14:42:52 2004 +0000
+++ b/road_gui.c	Tue Aug 10 14:50:42 2004 +0000
@@ -61,7 +61,8 @@
 {
 	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);
 	}
 }