diff options
author | Mattes D <github@xoft.cz> | 2014-11-18 09:23:45 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-11-18 09:23:45 +0100 |
commit | 8c54fc0f7d92af1fbb774fdc36d32f4640769333 (patch) | |
tree | 6135506673f20b96e1a7f2125e8f1cef06bc9cc4 /src | |
parent | Added cOctavedNoise template. (diff) | |
download | cuberite-8c54fc0f7d92af1fbb774fdc36d32f4640769333.tar cuberite-8c54fc0f7d92af1fbb774fdc36d32f4640769333.tar.gz cuberite-8c54fc0f7d92af1fbb774fdc36d32f4640769333.tar.bz2 cuberite-8c54fc0f7d92af1fbb774fdc36d32f4640769333.tar.lz cuberite-8c54fc0f7d92af1fbb774fdc36d32f4640769333.tar.xz cuberite-8c54fc0f7d92af1fbb774fdc36d32f4640769333.tar.zst cuberite-8c54fc0f7d92af1fbb774fdc36d32f4640769333.zip |
Diffstat (limited to '')
-rw-r--r-- | src/CMakeLists.txt | 1 | ||||
-rw-r--r-- | src/OctavedNoise.h | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 096fa824d..83d19eca2 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -121,6 +121,7 @@ SET (HDRS MobSpawner.h MonsterConfig.h Noise.h + OctavedNoise.h ProbabDistrib.h RankManager.h RCONServer.h diff --git a/src/OctavedNoise.h b/src/OctavedNoise.h index 86fb0ddb0..272a1051e 100644 --- a/src/OctavedNoise.h +++ b/src/OctavedNoise.h @@ -80,7 +80,7 @@ public: } // Add each octave: - for (cOctaves::const_iterator itr = m_Octaves.begin() + 1, end = m_Octaves.end(); itr != end; ++itr) + for (auto itr = m_Octaves.cbegin() + 1, end = m_Octaves.cend(); itr != end; ++itr) { // Generate the noise for the octave: itr->m_Noise.Generate2D( @@ -139,7 +139,7 @@ public: } // Add each octave: - for (cOctaves::const_iterator itr = m_Octaves.begin() + 1, end = m_Octaves.end(); itr != end; ++itr) + for (auto itr = m_Octaves.cbegin() + 1, end = m_Octaves.cend(); itr != end; ++itr) { // Generate the noise for the octave: itr->m_Noise.Generate3D( |