mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-24 15:09:10 +00:00
(svn r15651) -Codechange: Codestyle and comments.
This commit is contained in:
@@ -43,14 +43,14 @@ static uint32 CanalGetVariable(const ResolverObject *object, byte variable, byte
|
|||||||
TileIndex tile = object->u.canal.tile;
|
TileIndex tile = object->u.canal.tile;
|
||||||
|
|
||||||
switch (variable) {
|
switch (variable) {
|
||||||
case 0x80:
|
/* Height of tile */
|
||||||
return GetTileZ(tile) / TILE_HEIGHT;
|
case 0x80: return GetTileZ(tile) / TILE_HEIGHT;
|
||||||
|
|
||||||
case 0x81:
|
/* Terrain type */
|
||||||
return GetTerrainType(tile);
|
case 0x81: return GetTerrainType(tile);
|
||||||
|
|
||||||
case 0x83:
|
/* Random data for river or canal tiles, otherwise zero */
|
||||||
return GetWaterTileRandomBits(tile);
|
case 0x83: return GetWaterTileRandomBits(tile);
|
||||||
}
|
}
|
||||||
|
|
||||||
DEBUG(grf, 1, "Unhandled canal property 0x%02X", variable);
|
DEBUG(grf, 1, "Unhandled canal property 0x%02X", variable);
|
||||||
|
Reference in New Issue
Block a user