(svn r5499) Fix a case of an uninitialised variable in r5368 which caused some graphical glitches at foundations (wrong foundation borders, flickering) 0.4
authortron
Sat, 15 Jul 2006 09:21:29 +0000
branch0.4
changeset 10062 8d0e380323b0
parent 10061 2f16698d8206
child 10063 4207bb54e7c8
(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
--- a/landscape.c	Fri Jul 14 18:45:31 2006 +0000
+++ b/landscape.c	Sat Jul 15 09:21:29 2006 +0000
@@ -193,6 +193,7 @@
 
 	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