]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/cavegen.h
Make use of safe file writing in auth handler (fixes #6576)
[dragonfireclient.git] / src / cavegen.h
index a1140594e0ad9ed1b918eea65777b8dfaf39b194..ce146e0cda2108e15a2ce89ac6f83bf29b0ca213 100644 (file)
@@ -17,11 +17,9 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */
 
-#ifndef CAVEGEN_HEADER
-#define CAVEGEN_HEADER
+#pragma once
 
 #define VMANIP_FLAG_CAVE VOXELFLAG_CHECKED1
-#define DEFAULT_LAVA_DEPTH (-256)
 
 class GenerateNotifier;
 
@@ -157,7 +155,7 @@ class CavesRandomWalk
        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
@@ -242,5 +240,3 @@ class CavesV6
 
        inline s16 getSurfaceFromHeightmap(v3s16 p);
 };
-
-#endif