1
0
Fork 0

(svn r15512) -Cleanup: Codestyle fixes.

release/0.7
peter1138 2009-02-18 09:10:02 +00:00
parent e5d6f3ef2e
commit fe5acb59f7
1 changed files with 11 additions and 11 deletions

View File

@ -72,6 +72,7 @@ static uint32 IndustryTileGetVariable(const ResolverObject *object, byte variabl
/* Construction state of the tile: a value between 0 and 3 */
case 0x40: return (IsTileType(tile, MP_INDUSTRY)) ? GetIndustryConstructionStage(tile) : 0;
/* Terrain type */
case 0x41: return GetTerrainType(tile);
/* Current town zone of the tile in the nearest town */
@ -87,13 +88,12 @@ static uint32 IndustryTileGetVariable(const ResolverObject *object, byte variabl
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);