diff options
author | rubidium <rubidium@openttd.org> | 2011-01-18 22:31:06 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2011-01-18 22:31:06 +0000 |
commit | 7efd7e19ed046a4a0c03077f27930291ba5b9725 (patch) | |
tree | 9e08703cd992ede72e5165044b69750b1385510f /src/elrail.cpp | |
parent | 6c9078fd30097b38537a60fbecb9828da69c3517 (diff) | |
download | openttd-7efd7e19ed046a4a0c03077f27930291ba5b9725.tar.xz |
(svn r21845) -Codechange: move documentation towards the code to make it more likely to be updates [d-m].
Diffstat (limited to 'src/elrail.cpp')
-rw-r--r-- | src/elrail.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/elrail.cpp b/src/elrail.cpp index 7bc8f98b0..701d17a26 100644 --- a/src/elrail.cpp +++ b/src/elrail.cpp @@ -473,6 +473,13 @@ static void DrawCatenaryRailway(const TileInfo *ti) } } +/** + * Draws wires on a tunnel tile + * + * DrawTile_TunnelBridge() calls this function to draw the wires on the bridge. + * + * @param ti The Tileinfo to draw the tile for + */ void DrawCatenaryOnBridge(const TileInfo *ti) { TileIndex end = GetSouthernBridgeEnd(ti->tile); @@ -530,6 +537,11 @@ void DrawCatenaryOnBridge(const TileInfo *ti) } } +/** + * Draws overhead wires and pylons for electric railways. + * @param ti The TileInfo struct of the tile being drawn + * @see DrawCatenaryRailway + */ void DrawCatenary(const TileInfo *ti) { switch (GetTileType(ti->tile)) { |