1
0
Fork 0

OctavedNoise: linux compilation fixes.

This commit is contained in:
Mattes D 2014-11-18 09:23:45 +01:00
parent e9082263c9
commit 8c54fc0f7d
2 changed files with 3 additions and 2 deletions

View File

@ -121,6 +121,7 @@ SET (HDRS
MobSpawner.h
MonsterConfig.h
Noise.h
OctavedNoise.h
ProbabDistrib.h
RankManager.h
RCONServer.h

View File

@ -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(