From d624f66c794109a22787685a3aa53d6cf35a02ba Mon Sep 17 00:00:00 2001 From: rubidium Date: Thu, 26 Jul 2007 16:51:10 +0000 Subject: (svn r10698) -Codechange [FS#1082]: simplify the code related to foundations. Primarily removal of (duplicated|magic) code and introduction of few helper functions to ease foundation determination. Patch by frosch. --- src/landscape.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/landscape.h') diff --git a/src/landscape.h b/src/landscape.h index 01713008a..5c9c813cb 100644 --- a/src/landscape.h +++ b/src/landscape.h @@ -39,7 +39,8 @@ static inline Point RemapCoords2(int x, int y) return RemapCoords(x, y, GetSlopeZ(x, y)); } -void DrawFoundation(TileInfo *ti, uint f); +uint ApplyFoundationToSlope(Foundation f, Slope *s); +void DrawFoundation(TileInfo *ti, Foundation f); void DoClearSquare(TileIndex tile); void RunTileLoop(); -- cgit v1.2.3-54-g00ecf