mirror of https://github.com/OpenTTD/OpenTTD
(svn r15512) -Cleanup: Codestyle fixes.
parent
e5d6f3ef2e
commit
fe5acb59f7
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue