diff options
author | madmaxoft <github@xoft.cz> | 2014-04-04 12:28:38 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-04-04 12:28:38 +0200 |
commit | 4b4c3f2a204d353e1fa793d1a2b08838221a8616 (patch) | |
tree | 8b89b8f2be00bff9f370ba2de648930294e44d77 | |
parent | Fixed format string mismatch. (diff) | |
download | cuberite-4b4c3f2a204d353e1fa793d1a2b08838221a8616.tar cuberite-4b4c3f2a204d353e1fa793d1a2b08838221a8616.tar.gz cuberite-4b4c3f2a204d353e1fa793d1a2b08838221a8616.tar.bz2 cuberite-4b4c3f2a204d353e1fa793d1a2b08838221a8616.tar.lz cuberite-4b4c3f2a204d353e1fa793d1a2b08838221a8616.tar.xz cuberite-4b4c3f2a204d353e1fa793d1a2b08838221a8616.tar.zst cuberite-4b4c3f2a204d353e1fa793d1a2b08838221a8616.zip |
-rw-r--r-- | src/Noise.cpp | 2 | ||||
-rw-r--r-- | src/Noise.h | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/Noise.cpp b/src/Noise.cpp index a97ea70c6..32922c8f3 100644 --- a/src/Noise.cpp +++ b/src/Noise.cpp @@ -425,7 +425,7 @@ void cCubicCell3D::Move(int a_NewFloorX, int a_NewFloorY, int a_NewFloorZ) /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // cNoise: -cNoise::cNoise(unsigned int a_Seed) : +cNoise::cNoise(int a_Seed) : m_Seed(a_Seed) { } diff --git a/src/Noise.h b/src/Noise.h index ea72c64e9..62004503f 100644 --- a/src/Noise.h +++ b/src/Noise.h @@ -25,7 +25,7 @@ class cNoise { public: - cNoise(unsigned int a_Seed); + cNoise(int a_Seed); cNoise(const cNoise & a_Noise); // The following functions, if not marked INLINE, are about 20 % slower @@ -47,14 +47,14 @@ public: NOISE_DATATYPE CubicNoise3D (NOISE_DATATYPE a_X, NOISE_DATATYPE a_Y, NOISE_DATATYPE a_Z) const; - void SetSeed(unsigned int a_Seed) { m_Seed = a_Seed; } + void SetSeed(int a_Seed) { m_Seed = a_Seed; } INLINE static NOISE_DATATYPE CubicInterpolate (NOISE_DATATYPE a_A, NOISE_DATATYPE a_B, NOISE_DATATYPE a_C, NOISE_DATATYPE a_D, NOISE_DATATYPE a_Pct); INLINE static NOISE_DATATYPE CosineInterpolate(NOISE_DATATYPE a_A, NOISE_DATATYPE a_B, NOISE_DATATYPE a_Pct); INLINE static NOISE_DATATYPE LinearInterpolate(NOISE_DATATYPE a_A, NOISE_DATATYPE a_B, NOISE_DATATYPE a_Pct); private: - unsigned int m_Seed; + int m_Seed; } ; |