diff options
author | peter1138 <peter1138@openttd.org> | 2009-02-18 09:10:02 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2009-02-18 09:10:02 +0000 |
commit | fe5acb59f75a382cec259aebda7c7bbaf13da427 (patch) | |
tree | 5cc92ac7fbe77339dd9cac78f3c70b5b05adc1af | |
parent | e5d6f3ef2eeba65a417ce8d43437b1424b0a4b8f (diff) | |
download | openttd-fe5acb59f75a382cec259aebda7c7bbaf13da427.tar.xz |
(svn r15512) -Cleanup: Codestyle fixes.
-rw-r--r-- | src/newgrf_industrytiles.cpp | 22 |
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); |