diff options
author | frosch <frosch@openttd.org> | 2008-01-31 17:46:08 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2008-01-31 17:46:08 +0000 |
commit | 90ee6a16ab499135691fc0be395555d69e0c620e (patch) | |
tree | 938c7be67dc7eb597b5484394eaaf2db1f9b663a /src/newgrf_house.cpp | |
parent | 67e5fc5718940dfe06caa97e6bcbf870e9fb2a1c (diff) | |
download | openttd-90ee6a16ab499135691fc0be395555d69e0c620e.tar.xz |
(svn r12028) -Codechange: Split common part of station var 0x67, house var 0x62, indtile var 0x60 and industry var 0x62 to 'newgrf_commons.cpp'.
Diffstat (limited to 'src/newgrf_house.cpp')
-rw-r--r-- | src/newgrf_house.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/newgrf_house.cpp b/src/newgrf_house.cpp index 31aa4e972..44b615f2b 100644 --- a/src/newgrf_house.cpp +++ b/src/newgrf_house.cpp @@ -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); } /** |