(svn r22655) -Add: [NewGRF] Add water class to the 'land info of nearby tiles' vars.

This commit is contained in:
michi_cc 2011-07-11 16:32:13 +00:00
parent abf286e990
commit 1e855be492
1 changed files with 1 additions and 1 deletions

View File

@ -442,7 +442,7 @@ uint32 GetNearbyTileInformation(TileIndex tile)
uint z;
Slope tileh = GetTileSlope(tile, &z);
byte terrain_type = GetTerrainType(tile) << 2 | (tile_type == MP_WATER ? 1 : 0) << 1;
byte terrain_type = (HasTileWaterClass(tile) ? GetWaterClass(tile) : WATER_CLASS_INVALID) << 5 | GetTerrainType(tile) << 2 | (tile_type == MP_WATER ? 1 : 0) << 1;
return tile_type << 24 | z << 16 | terrain_type << 8 | tileh;
}