mirror of https://github.com/OpenTTD/OpenTTD
(svn r696) Do not consider a road station as street when growing the town.
parent
7a8fb5d2fd
commit
5650257c0c
|
@ -404,6 +404,13 @@ static bool IsRoadAllowedHere(uint tile, int dir)
|
||||||
TILE_ASSERT(tile);
|
TILE_ASSERT(tile);
|
||||||
|
|
||||||
for(;;) {
|
for(;;) {
|
||||||
|
// Check if we didn't hit a station. That little roadstation
|
||||||
|
// pinkeye returns nonzero GetRoadBitsByTile(), but the road
|
||||||
|
// doesn't really go through it (nor can we extend it at
|
||||||
|
// that place).
|
||||||
|
if (IS_TILETYPE(tile, MP_STATION))
|
||||||
|
return false;
|
||||||
|
|
||||||
// Check if there already is a road at this point?
|
// Check if there already is a road at this point?
|
||||||
if (GetRoadBitsByTile(tile) == 0) {
|
if (GetRoadBitsByTile(tile) == 0) {
|
||||||
// No, try to build one in the direction.
|
// No, try to build one in the direction.
|
||||||
|
|
Loading…
Reference in New Issue