summaryrefslogtreecommitdiff
path: root/src/road_map.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-07-12 09:39:30 +0000
committerrubidium <rubidium@openttd.org>2009-07-12 09:39:30 +0000
commitb5b743bcba3c90e3e9756d5975cc2432ba7d6d4d (patch)
tree77f74c1217c9a7d01688a97bf8d068c76a5d5377 /src/road_map.cpp
parentfff3bae83d95b2238bc371829ef50ade385f3081 (diff)
downloadopenttd-b5b743bcba3c90e3e9756d5975cc2432ba7d6d4d.tar.xz
(svn r16795) -Fix [FS#3025]: houses wouldn't get build on the map edge.
Diffstat (limited to 'src/road_map.cpp')
-rw-r--r--src/road_map.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/road_map.cpp b/src/road_map.cpp
index 83a247c48..34028e467 100644
--- a/src/road_map.cpp
+++ b/src/road_map.cpp
@@ -34,14 +34,3 @@ RoadBits GetAnyRoadBits(TileIndex tile, RoadType rt, bool straight_tunnel_bridge
default: return ROAD_NONE;
}
}
-
-
-TrackBits GetAnyRoadTrackBits(TileIndex tile, RoadType rt)
-{
- /* Don't allow local authorities to build roads through road depots or road stops. */
- if (IsRoadDepotTile(tile) || (IsTileType(tile, MP_STATION) && !IsDriveThroughStopTile(tile)) || !HasTileRoadType(tile, rt)) {
- return TRACK_BIT_NONE;
- }
-
- return TrackStatusToTrackBits(GetTileTrackStatus(tile, TRANSPORT_ROAD, RoadTypeToRoadTypes(rt)));
-}