mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r6) -Fix [1006530] BuildRoadOutsideStation fix. Fix bug [994720] road depot - bus/lorry station (Truelight+Darkvater :P )
This commit is contained in:
parent
a32d8553e7
commit
48965f84b6
|
@ -61,7 +61,8 @@ static void BuildRoadOutsideStation(uint tile, int direction)
|
||||||
{
|
{
|
||||||
static const byte _roadbits_by_dir[4] = {2,1,8,4};
|
static const byte _roadbits_by_dir[4] = {2,1,8,4};
|
||||||
tile += _tileoffs_by_dir[direction];
|
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);
|
DoCommandP(tile, _roadbits_by_dir[direction], 0, NULL, CMD_BUILD_ROAD);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue