diff options
author | sfan5 <sfan5@live.de> | 2021-03-23 15:43:26 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-23 15:43:26 +0100 |
commit | 2da1eee394554879bf1cee6bc0f7b77acf0b6c43 (patch) | |
tree | c27bf698c21f13263fa3d56cd51ebaeace30ce2e /src/noise.h | |
parent | c9eba8440d3dc293a8aa6ffafc045737732da1e1 (diff) | |
download | minetest-2da1eee394554879bf1cee6bc0f7b77acf0b6c43.tar.gz minetest-2da1eee394554879bf1cee6bc0f7b77acf0b6c43.tar.bz2 minetest-2da1eee394554879bf1cee6bc0f7b77acf0b6c43.zip |
Fix broken `BiomeGen` abstraction (#11107)
Diffstat (limited to 'src/noise.h')
-rw-r--r-- | src/noise.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/noise.h b/src/noise.h index 613879890..854781731 100644 --- a/src/noise.h +++ b/src/noise.h @@ -146,7 +146,7 @@ public: float *persist_buf = nullptr; float *result = nullptr; - Noise(NoiseParams *np, s32 seed, u32 sx, u32 sy, u32 sz=1); + Noise(const NoiseParams *np, s32 seed, u32 sx, u32 sy, u32 sz=1); ~Noise(); void setSize(u32 sx, u32 sy, u32 sz=1); @@ -192,8 +192,8 @@ private: }; -float NoisePerlin2D(NoiseParams *np, float x, float y, s32 seed); -float NoisePerlin3D(NoiseParams *np, float x, float y, float z, s32 seed); +float NoisePerlin2D(const NoiseParams *np, float x, float y, s32 seed); +float NoisePerlin3D(const NoiseParams *np, float x, float y, float z, s32 seed); inline float NoisePerlin2D_PO(NoiseParams *np, float x, float xoff, float y, float yoff, s32 seed) |