diff options
author | frosch <frosch@openttd.org> | 2008-06-12 21:36:56 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2008-06-12 21:36:56 +0000 |
commit | 79ad51867aa9551a8e9a85bdc3eff5ff760837b2 (patch) | |
tree | a1c6142c85a2edeaeb243c5a5f20cc704bf643ed /src/slope_func.h | |
parent | 7dcc69e617ef3630f12371af5bf3d148928ca9b1 (diff) | |
download | openttd-79ad51867aa9551a8e9a85bdc3eff5ff760837b2.tar.xz |
(svn r13499) -Codechange: Allow drawing (ugly) leveled foundations on steep slopes, just in case someone needs them for fallback.
Diffstat (limited to 'src/slope_func.h')
-rw-r--r-- | src/slope_func.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/slope_func.h b/src/slope_func.h index 7bfa5e52d..99722f62b 100644 --- a/src/slope_func.h +++ b/src/slope_func.h @@ -347,13 +347,11 @@ static inline Corner GetRailFoundationCorner(Foundation f) * Returns the foundation needed to flatten a slope. * The returned foundation is either FOUNDATION_NONE if the tile was already flat, or FOUNDATION_LEVELED. * - * @pre The slope must not be steep. * @param s The current #Slope. * @return The needed #Foundation. */ static inline Foundation FlatteningFoundation(Slope s) { - assert(!IsSteepSlope(s)); return (s == SLOPE_FLAT ? FOUNDATION_NONE : FOUNDATION_LEVELED); } |