Mercurial > hg > openttd
changeset 17859:d6f85eb5ec53 draft
(svn r22655) -Add: [NewGRF] Add water class to the 'land info of nearby tiles' vars.
author | michi_cc <michi_cc@openttd.org> |
---|---|
date | Mon, 11 Jul 2011 16:32:13 +0000 |
parents | caa80a1af715 |
children | 89ea8ed98e38 |
files | src/newgrf_commons.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/newgrf_commons.cpp +++ b/src/newgrf_commons.cpp @@ -442,7 +442,7 @@ 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; }