Changeset - r11297:fb7ba0ef18bc
[Not reviewed]
master
0 1 0
peter1138 - 15 years ago 2009-03-09 13:38:00
peter1138@openttd.org
(svn r15651) -Codechange: Codestyle and comments.
1 file changed with 6 insertions and 6 deletions:
0 comments (0 inline, 0 general)
src/newgrf_canal.cpp
Show inline comments
 
@@ -43,14 +43,14 @@ static uint32 CanalGetVariable(const Res
 
	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);
0 comments (0 inline, 0 general)