summaryrefslogtreecommitdiff
path: root/src/cavegen.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/cavegen.h')
-rw-r--r--src/cavegen.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cavegen.h b/src/cavegen.h
index 74cd0b416..5a41966fe 100644
--- a/src/cavegen.h
+++ b/src/cavegen.h
@@ -71,6 +71,9 @@ public:
void makeCave(v3s16 nmin, v3s16 nmax, int max_stone_height);
void makeTunnel(bool dirswitch);
void carveRoute(v3f vec, float f, bool randomize_xz);
+
+private:
+ inline bool isPosAboveSurface(v3s16 p);
};
/*
@@ -140,6 +143,8 @@ public:
private:
void makeTunnel(bool dirswitch);
void carveRoute(v3f vec, float f, bool randomize_xz, bool tunnel_above_ground);
+
+ inline s16 getSurfaceFromHeightmap(v3s16 p);
};
#endif