Changeset - r20803:a4210c64dd69
[Not reviewed]
master
0 1 0
zuu - 11 years ago 2013-10-12 22:01:21
zuu@openttd.org
(svn r25847) -Fix: Comment for GetFoundationSlope was wrong (cirdan, LordAro)
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/landscape.cpp
Show inline comments
 
@@ -326,13 +326,13 @@ void GetSlopePixelZOnEdge(Slope tileh, D
 
	if (RemoveHalftileSlope(tileh) == corners[edge][2]) *z1 += TILE_HEIGHT; // z1 is highest corner of a steep slope
 
	if (RemoveHalftileSlope(tileh) == corners[edge][3]) *z2 += TILE_HEIGHT; // z2 is highest corner of a steep slope
 
}
 

	
 
/**
 
 * Get slope of a tile on top of a (possible) foundation
 
 * If a tile does not have a foundation, the function returns the same as GetTilePixelSlope.
 
 * If a tile does not have a foundation, the function returns the same as GetTileSlope.
 
 *
 
 * @param tile The tile of interest.
 
 * @param z returns the z of the foundation slope. (Can be NULL, if not needed)
 
 * @return The slope on top of the foundation.
 
 */
 
Slope GetFoundationSlope(TileIndex tile, int *z)
0 comments (0 inline, 0 general)