(svn r12028) -Codechange: Split common part of station var 0x67, house var 0x62, indtile var 0x60 and industry var 0x62 to 'newgrf_commons.cpp'.

This commit is contained in:
frosch
2008-01-31 17:46:08 +00:00
parent ef35cefddc
commit fe9891c8ec
5 changed files with 24 additions and 20 deletions

View File

@@ -170,14 +170,8 @@ static uint32 GetGRFParameter(HouseID house_id, byte parameter)
uint32 GetNearbyTileInformation(byte parameter, TileIndex tile)
{
uint32 tile_type;
tile = GetNearbyTile(parameter, tile);
tile_type = GetTerrainType(tile) << 2 | (IsTileType(tile, MP_WATER) ? 1 : 0) << 1;
uint z;
Slope tileh = GetTileSlope(tile, &z);
return GetTileType(tile) << 24 | z << 16 | tile_type << 8 | tileh;
return GetNearbyTileInformation(tile);
}
/**