(svn r11107) -Feature: some tool so one can still build tunnels under rails (and other structures) when the owner of the structure built it on foundations and if you have enough "empty" space ofcourse. One could use the tool for some other construction needs too. Patch by frosch.
This commit is contained in:
13
src/slope.h
13
src/slope.h
@@ -90,6 +90,19 @@ static inline byte GetHighestSlopeCorner(Slope s)
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the height of the highest corner of a slope relative to TileZ (= minimal height)
|
||||
*
|
||||
* @param s The #Slope.
|
||||
* @return Relative height of highest corner.
|
||||
*/
|
||||
static inline uint GetSlopeMaxZ(Slope s)
|
||||
{
|
||||
if (s == SLOPE_FLAT) return 0;
|
||||
if (IsSteepSlope(s)) return 2 * TILE_HEIGHT;
|
||||
return TILE_HEIGHT;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Enumeration for Foundations.
|
||||
|
||||
Reference in New Issue
Block a user