Modernize client code (#6250)
[oweals/minetest.git] / src / cavegen.h
index a1140594e0ad9ed1b918eea65777b8dfaf39b194..db3e091f6f3fd6a8fb404ae5548d9d1d2c432c2e 100644 (file)
@@ -21,7 +21,6 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 #define CAVEGEN_HEADER
 
 #define VMANIP_FLAG_CAVE VOXELFLAG_CHECKED1
-#define DEFAULT_LAVA_DEPTH (-256)
 
 class GenerateNotifier;
 
@@ -157,7 +156,7 @@ public:
        CavesRandomWalk(INodeDefManager *ndef, GenerateNotifier *gennotify = NULL,
                        s32 seed = 0, int water_level = 1,
                        content_t water_source = CONTENT_IGNORE,
-                       content_t lava_source = CONTENT_IGNORE);
+                       content_t lava_source = CONTENT_IGNORE, int lava_depth = -256);
 
        // vm and ps are mandatory parameters.
        // If heightmap is NULL, the surface level at all points is assumed to