From 6708e181ebebce5d82b259b7db33460a58e783cf Mon Sep 17 00:00:00 2001 From: tron Date: Sat, 15 Jul 2006 09:21:29 +0000 Subject: [PATCH] (svn r5499) Fix a case of an uninitialised variable in r5368 which caused some graphical glitches at foundations (wrong foundation borders, flickering) This problem only exists in the backport --- landscape.c | 1 + 1 file changed, 1 insertion(+) diff --git a/landscape.c b/landscape.c index f92cd13498..2dfb3ccb0f 100644 --- a/landscape.c +++ b/landscape.c @@ -193,6 +193,7 @@ static Slope GetFoundationSlope(TileIndex tile, uint* z) FindLandscapeHeightByTile(&ti, tile); tileh = ti.tileh; + *z = ti.z; slope = _tile_type_procs[GetTileType(tile)]->get_slope_tileh_proc(&ti); // Flatter slope -> higher base height