Fixed style.
This commit is contained in:
parent
6444bc25ba
commit
60e235362c
@ -227,7 +227,7 @@ cBioGenMulticache::cBioGenMulticache(cBiomeGen * a_BioGenToCache, size_t a_Cache
|
||||
|
||||
cBioGenMulticache::~cBioGenMulticache()
|
||||
{
|
||||
for (std::vector<cBiomeGen*>::iterator it = m_Caches.begin(); it != m_Caches.end(); it++)
|
||||
for (cBiomeGens::iterator it = m_Caches.begin(); it != m_Caches.end(); it++)
|
||||
{
|
||||
delete *it;
|
||||
}
|
||||
@ -251,7 +251,7 @@ void cBioGenMulticache::GenBiomes(int a_ChunkX, int a_ChunkZ, cChunkDef::BiomeMa
|
||||
|
||||
void cBioGenMulticache::InitializeBiomeGen(cIniFile & a_IniFile)
|
||||
{
|
||||
for (std::vector<cBiomeGen*>::iterator it = m_Caches.begin(); it != m_Caches.end(); it++)
|
||||
for (cBiomeGens::iterator it = m_Caches.begin(); it != m_Caches.end(); it++)
|
||||
{
|
||||
cBiomeGen * tmp = *it;
|
||||
tmp->InitializeBiomeGen(a_IniFile);
|
||||
|
@ -88,15 +88,19 @@ class cBioGenMulticache :
|
||||
|
||||
public:
|
||||
/*
|
||||
a_CacheSize defines the size of each singular cache
|
||||
a_CachesLength defines how many caches are used for the multicache
|
||||
a_CacheSize defines the size of each singular cache
|
||||
a_CachesLength defines how many caches are used for the multicache
|
||||
*/
|
||||
cBioGenMulticache(cBiomeGen * a_BioGenToCache, size_t a_CacheSize, size_t a_CachesLength); // Doesn't take ownership of a_BioGenToCache
|
||||
~cBioGenMulticache();
|
||||
|
||||
protected:
|
||||
size_t m_CachesLength;
|
||||
std::vector<cBiomeGen*> m_Caches;
|
||||
typedef std::vector<cBiomeGen *> cBiomeGens;
|
||||
|
||||
|
||||
size_t m_CachesLength;
|
||||
cBiomeGens m_Caches;
|
||||
|
||||
|
||||
virtual void GenBiomes(int a_ChunkX, int a_ChunkZ, cChunkDef::BiomeMap & a_BiomeMap) override;
|
||||
virtual void InitializeBiomeGen(cIniFile & a_IniFile) override;
|
||||
|
Loading…
Reference in New Issue
Block a user