diff options
author | rubidium <rubidium@openttd.org> | 2011-05-02 20:59:54 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2011-05-02 20:59:54 +0000 |
commit | ff143c67085ad22abb5f6920873fd0ff9eddf603 (patch) | |
tree | f4f5fe046bd9b07d8a9c20130d7e115eb80f45ba /src/tunnelbridge_cmd.cpp | |
parent | cf30941fab66fe6232e5b15b59ebedc4ea430e1e (diff) | |
download | openttd-ff143c67085ad22abb5f6920873fd0ff9eddf603.tar.xz |
(svn r22413) -Document: even more stuff
Diffstat (limited to 'src/tunnelbridge_cmd.cpp')
-rw-r--r-- | src/tunnelbridge_cmd.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/tunnelbridge_cmd.cpp b/src/tunnelbridge_cmd.cpp index 54a7c9370..51323f0c1 100644 --- a/src/tunnelbridge_cmd.cpp +++ b/src/tunnelbridge_cmd.cpp @@ -89,6 +89,12 @@ int CalcBridgeLenCostFactor(int length) } } +/** + * Get the foundation for a bridge. + * @param tileh The slope to build the bridge on. + * @param axis The axis of the bridge entrace. + * @return The foundatiton required. + */ Foundation GetBridgeFoundation(Slope tileh, Axis axis) { if (tileh == SLOPE_FLAT || @@ -1208,7 +1214,10 @@ static BridgePieces CalcBridgePiece(uint north, uint south) } } - +/** + * Draw the middle bits of a bridge. + * @param ti Tile information of the tile to draw it on. + */ void DrawBridgeMiddle(const TileInfo *ti) { /* Sectional view of bridge bounding boxes: |