summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2009-02-18 09:10:02 +0000
committerpeter1138 <peter1138@openttd.org>2009-02-18 09:10:02 +0000
commitf1620f6984583fb9d6c306f2bce698e4cc1a44be (patch)
tree5cc92ac7fbe77339dd9cac78f3c70b5b05adc1af
parent43d80ce6f66601b20e96ea89e028735d3ab13f70 (diff)
downloadopenttd-f1620f6984583fb9d6c306f2bce698e4cc1a44be.tar.xz
(svn r15512) -Cleanup: Codestyle fixes.
-rw-r--r--src/newgrf_industrytiles.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/newgrf_industrytiles.cpp b/src/newgrf_industrytiles.cpp
index ad265f7ee..46d5eedf2 100644
--- a/src/newgrf_industrytiles.cpp
+++ b/src/newgrf_industrytiles.cpp
@@ -69,34 +69,34 @@ static uint32 IndustryTileGetVariable(const ResolverObject *object, byte variabl
}
switch (variable) {
- /* Construction state of the tile: a value between 0 and 3 */
- case 0x40 : return (IsTileType(tile, MP_INDUSTRY)) ? GetIndustryConstructionStage(tile) : 0;
+ /* Construction state of the tile: a value between 0 and 3 */
+ case 0x40: return (IsTileType(tile, MP_INDUSTRY)) ? GetIndustryConstructionStage(tile) : 0;
- case 0x41 : return GetTerrainType(tile);
+ /* Terrain type */
+ case 0x41: return GetTerrainType(tile);
/* Current town zone of the tile in the nearest town */
- case 0x42 : return GetTownRadiusGroup(ClosestTownFromTile(tile, UINT_MAX), tile);
+ case 0x42: return GetTownRadiusGroup(ClosestTownFromTile(tile, UINT_MAX), tile);
/* Relative position */
- case 0x43 : return GetRelativePosition(tile, inds->xy);
+ case 0x43: return GetRelativePosition(tile, inds->xy);
/* Animation frame. Like house variable 46 but can contain anything 0..FF. */
- case 0x44 : return (IsTileType(tile, MP_INDUSTRY)) ? GetIndustryAnimationState(tile) : 0;
+ case 0x44: return (IsTileType(tile, MP_INDUSTRY)) ? GetIndustryAnimationState(tile) : 0;
/* Land info of nearby tiles */
- case 0x60 : return GetNearbyIndustryTileInformation(parameter, tile, inds == NULL ? (IndustryID)INVALID_INDUSTRY : inds->index);
+ case 0x60: return GetNearbyIndustryTileInformation(parameter, tile, inds == NULL ? (IndustryID)INVALID_INDUSTRY : inds->index);
/* Animation stage of nearby tiles */
- case 0x61 : {
+ case 0x61:
tile = GetNearbyTile(parameter, tile);
if (IsTileType(tile, MP_INDUSTRY) && GetIndustryByTile(tile) == inds) {
return GetIndustryAnimationState(tile);
}
- return 0xFFFFFFFF;
- }
+ return UINT_MAX;
/* Get industry tile ID at offset */
- case 0x62 : return GetIndustryIDAtOffset(GetNearbyTile(parameter, tile), inds);
+ case 0x62: return GetIndustryIDAtOffset(GetNearbyTile(parameter, tile), inds);
}
DEBUG(grf, 1, "Unhandled industry tile property 0x%X", variable);