Bunch of tweaks:
Renamed Quarts to Quartz Using const_iterator instead of iterator Used CheckBasicStyle script to find style errors
This commit is contained in:
parent
e529401dbb
commit
d95768d01a
@ -424,13 +424,13 @@ void cComposableGenerator::InitFinishGens(cIniFile & a_IniFile)
|
||||
{
|
||||
cStructGenOreNests::OreList Ores;
|
||||
|
||||
// Quarts vein
|
||||
cStructGenOreNests::OreInfo QuartsVein;
|
||||
QuartsVein.BlockType = E_BLOCK_NETHER_QUARTZ_ORE;
|
||||
QuartsVein.MaxHeight = 255;
|
||||
QuartsVein.NumNests = 80;
|
||||
QuartsVein.NestSize = 8;
|
||||
Ores.push_back(QuartsVein);
|
||||
// Quartz vein
|
||||
cStructGenOreNests::OreInfo QuartzVein;
|
||||
QuartzVein.BlockType = E_BLOCK_NETHER_QUARTZ_ORE;
|
||||
QuartzVein.MaxHeight = 255;
|
||||
QuartzVein.NumNests = 80;
|
||||
QuartzVein.NestSize = 8;
|
||||
Ores.push_back(QuartzVein);
|
||||
|
||||
m_FinishGens.push_back(new cStructGenOreNests(Seed, Ores, E_BLOCK_NETHERRACK));
|
||||
|
||||
|
@ -276,7 +276,7 @@ void cStructGenOreNests::GenFinish(cChunkDesc & a_ChunkDesc)
|
||||
int seq = 1;
|
||||
|
||||
// Generate the ores from the ore list.
|
||||
for (OreList::iterator itr = m_OreList.begin(); itr != m_OreList.end(); ++itr)
|
||||
for (OreList::const_iterator itr = m_OreList.begin(); itr != m_OreList.end(); ++itr)
|
||||
{
|
||||
GenerateOre(ChunkX, ChunkZ, itr->BlockType, itr->MaxHeight, itr->NumNests, itr->NestSize, BlockTypes, seq);
|
||||
seq++;
|
||||
|
Loading…
x
Reference in New Issue
Block a user