Changeset - r17849:44493951c339
[Not reviewed]
master
0 1 0
michi_cc - 13 years ago 2011-07-11 16:32:13
michi_cc@openttd.org
(svn r22655) -Add: [NewGRF] Add water class to the 'land info of nearby tiles' vars.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/newgrf_commons.cpp
Show inline comments
 
@@ -439,13 +439,13 @@ uint32 GetNearbyTileInformation(TileInde
 

	
 
	/* Fake tile type for trees on shore */
 
	if (IsTileType(tile, MP_TREES) && GetTreeGround(tile) == TREE_GROUND_SHORE) tile_type = MP_WATER;
 

	
 
	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;
 
}
 

	
 
/* static */ SmallVector<DrawTileSeqStruct, 8> NewGRFSpriteLayout::result_seq;
 

	
 
/**
0 comments (0 inline, 0 general)