Header file for things common for tunnels and bridges. More...
#include "map_func.h"Go to the source code of this file.
Functions | |
| static uint | GetTunnelBridgeLength (TileIndex begin, TileIndex end) |
| Calculates the length of a tunnel or a bridge (without end tiles). | |
Variables | |
| TileIndex | _build_tunnel_endtile |
Header file for things common for tunnels and bridges.
Definition in file tunnelbridge.h.
Calculates the length of a tunnel or a bridge (without end tiles).
Definition at line 21 of file tunnelbridge.h.
References abs(), TileX(), and TileY().
Referenced by CmdBuildBridge(), CmdBuildRoad(), CmdConvertRail(), DoClearBridge(), DoClearTunnel(), DrawCatenaryOnBridge(), GetRailTrackBitsUniversal(), RemoveRoad(), and ShowBuildBridgeWindow().
1.7.1