From d463000595ee2b8bce94e5b99e764be6e1fd52f6 Mon Sep 17 00:00:00 2001 From: paramat Date: Sat, 7 Mar 2015 03:15:12 +0000 Subject: Heightmaps: Fix uninitialised values in mgv5/mgv6. findGroundLevel: Return -MAP_GENERATION_LIMIT if surface not found --- src/mapgen.h | 1 - 1 file changed, 1 deletion(-) (limited to 'src/mapgen.h') diff --git a/src/mapgen.h b/src/mapgen.h index c9aee5ef5..756a1f339 100644 --- a/src/mapgen.h +++ b/src/mapgen.h @@ -154,7 +154,6 @@ public: static u32 getBlockSeed2(v3s16 p, int seed); s16 findGroundLevelFull(v2s16 p2d); s16 findGroundLevel(v2s16 p2d, s16 ymin, s16 ymax); - void initHeightMap(s16 *dest, size_t len); void updateHeightmap(v3s16 nmin, v3s16 nmax); void updateLiquid(UniqueQueue *trans_liquid, v3s16 nmin, v3s16 nmax); -- cgit v1.2.3