From 1992db1395d9c068327a7c08bac7a24ef7112274 Mon Sep 17 00:00:00 2001 From: Loïc Blot Date: Sat, 19 Aug 2017 11:30:46 +0200 Subject: Code modernization: src/n*, src/o* (#6280) * Code modernization: src/n*, src/o* * empty function * default constructor/destructor * for range-based loops * use emplace_back instead of push_back * remove unused IWritableNodeDefManager::clone() * C++ STL header style * Pointer constness in some functions --- src/noise.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/noise.h') diff --git a/src/noise.h b/src/noise.h index ae97b8740..7b5e83251 100644 --- a/src/noise.h +++ b/src/noise.h @@ -112,7 +112,7 @@ struct NoiseParams { NoiseParams() = default; - NoiseParams(float offset_, float scale_, v3f spread_, s32 seed_, + NoiseParams(float offset_, float scale_, const v3f &spread_, s32 seed_, u16 octaves_, float persist_, float lacunarity_, u32 flags_=NOISE_FLAG_DEFAULTS) { @@ -180,7 +180,8 @@ public: private: void allocBuffers(); void resizeNoiseBuf(bool is3d); - void updateResults(float g, float *gmap, float *persistence_map, size_t bufsize); + void updateResults(float g, float *gmap, const float *persistence_map, + size_t bufsize); }; -- cgit v1.2.3