diff options
author | pasky <pasky@openttd.org> | 2004-11-20 01:49:42 +0000 |
---|---|---|
committer | pasky <pasky@openttd.org> | 2004-11-20 01:49:42 +0000 |
commit | 5650257c0c7aebfd680d44204ea0d711e41eef98 (patch) | |
tree | 59ff3f9000f60c6de3772ed20ded73a9205095e4 /town_cmd.c | |
parent | 7a8fb5d2fd84be604b54d0bb0b6eb53dbccdfff8 (diff) | |
download | openttd-5650257c0c7aebfd680d44204ea0d711e41eef98.tar.xz |
(svn r696) Do not consider a road station as street when growing the town.
Diffstat (limited to 'town_cmd.c')
-rw-r--r-- | town_cmd.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/town_cmd.c b/town_cmd.c index 7fc734620..50e18dc96 100644 --- a/town_cmd.c +++ b/town_cmd.c @@ -404,6 +404,13 @@ static bool IsRoadAllowedHere(uint tile, int dir) TILE_ASSERT(tile); 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? if (GetRoadBitsByTile(tile) == 0) { // No, try to build one in the direction. |