summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2009-03-09 13:38:00 +0000
committerpeter1138 <peter1138@openttd.org>2009-03-09 13:38:00 +0000
commit66672418144262be8ea1d9c7f7f635877ece71ab (patch)
tree25b14f6b7197853cb8ae2a01d0cf96ee09eccf98 /src
parent6616393cd2cf97c9e7a96b74005814ba62557b40 (diff)
downloadopenttd-66672418144262be8ea1d9c7f7f635877ece71ab.tar.xz
(svn r15651) -Codechange: Codestyle and comments.
Diffstat (limited to 'src')
-rw-r--r--src/newgrf_canal.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/newgrf_canal.cpp b/src/newgrf_canal.cpp
index 4a1278848..eab55e7f9 100644
--- a/src/newgrf_canal.cpp
+++ b/src/newgrf_canal.cpp
@@ -43,14 +43,14 @@ static uint32 CanalGetVariable(const ResolverObject *object, byte variable, byte
TileIndex tile = object->u.canal.tile;
switch (variable) {
- case 0x80:
- return GetTileZ(tile) / TILE_HEIGHT;
+ /* Height of tile */
+ case 0x80: return GetTileZ(tile) / TILE_HEIGHT;
- case 0x81:
- return GetTerrainType(tile);
+ /* Terrain type */
+ case 0x81: return GetTerrainType(tile);
- case 0x83:
- return GetWaterTileRandomBits(tile);
+ /* Random data for river or canal tiles, otherwise zero */
+ case 0x83: return GetWaterTileRandomBits(tile);
}
DEBUG(grf, 1, "Unhandled canal property 0x%02X", variable);