summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKUDr <kudr@openttd.org>2006-09-17 16:23:30 +0000
committerKUDr <kudr@openttd.org>2006-09-17 16:23:30 +0000
commit4794012f37edeb176aae1cb6226b43a9e6044210 (patch)
tree03daa6a276b635b2d98d7228781dbe93f6e27ad0
parented7392ef5d7b84fe2e357b3aec1da24d0a7c1951 (diff)
downloadopenttd-4794012f37edeb176aae1cb6226b43a9e6044210.tar.xz
(svn r6473) -Fix: FS#347 town extends road beyond road stop. Fixed by r5062, unfixed by r5798. Now there is proper comment, so it should not happen again.
-rw-r--r--road_map.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/road_map.c b/road_map.c
index 3573902bf..5e4fc667a 100644
--- a/road_map.c
+++ b/road_map.c
@@ -54,8 +54,8 @@ TrackBits GetAnyRoadTrackBits(TileIndex tile)
{
uint32 r;
- // Don't allow building through road depot tiles.
- if (IsTileType(tile, MP_STREET) && IsTileDepotType(tile, TRANSPORT_ROAD)) {
+ // Don't allow local authorities to build roads through road depots or road stops.
+ if ((IsTileType(tile, MP_STREET) && IsTileDepotType(tile, TRANSPORT_ROAD)) || IsTileType(tile, MP_STATION)) {
return 0;
}