mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-16 01:45:36 +02:00
Cavegen: Merge instances of repetitive surface level-finding code
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user