diff options
author | rubidium <rubidium@openttd.org> | 2008-03-22 10:56:08 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-03-22 10:56:08 +0000 |
commit | edd384c12136a8f0446ea7645a48688257dbfd9b (patch) | |
tree | c70cc515d076c09e820b06aa4af1dbdb1fe37307 /src/road_map.h | |
parent | fedb33d69776943b00853e4c2769daf328ff708d (diff) | |
download | openttd-edd384c12136a8f0446ea7645a48688257dbfd9b.tar.xz |
(svn r12390) -Fix [FS#1851]: trams failing to turn on bridge heads/tunnel entrances.
Diffstat (limited to 'src/road_map.h')
-rw-r--r-- | src/road_map.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/road_map.h b/src/road_map.h index 35a3f9cf2..2f29a97be 100644 --- a/src/road_map.h +++ b/src/road_map.h @@ -328,11 +328,16 @@ static inline DiagDirection GetRoadDepotDirection(TileIndex t) * - road tunnels: entrance is treated as road piece * - bridge ramps: start of the ramp is treated as road piece * - bridge middle parts: bridge itself is ignored + * + * If straight_tunnel_bridge_entrance is set a ROAD_X or ROAD_Y + * for bridge ramps and tunnel entrances is returned depending + * on the orientation of the tunnel or bridge. * @param tile the tile to get the road bits for * @param rt the road type to get the road bits form + * @param stbe whether to return straight road bits for tunnels/bridges. * @return the road bits of the given tile */ -RoadBits GetAnyRoadBits(TileIndex tile, RoadType rt); +RoadBits GetAnyRoadBits(TileIndex tile, RoadType rt, bool straight_tunnel_bridge_entrance = false); /** * Get the accessible track bits for the given tile. |