summaryrefslogtreecommitdiffstats
path: root/src/Generating/BioGen.h
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-09-05 22:07:13 +0200
committerMattes D <github@xoft.cz>2014-09-05 22:07:13 +0200
commit60e235362c9662ad01b68141b32f5aae28a2fdfe (patch)
tree61d7e2caecdc0c764c20cec493a792b8e4f0d50e /src/Generating/BioGen.h
parentFixed security: Player cannot spawn in a disabled world. (diff)
downloadcuberite-60e235362c9662ad01b68141b32f5aae28a2fdfe.tar
cuberite-60e235362c9662ad01b68141b32f5aae28a2fdfe.tar.gz
cuberite-60e235362c9662ad01b68141b32f5aae28a2fdfe.tar.bz2
cuberite-60e235362c9662ad01b68141b32f5aae28a2fdfe.tar.lz
cuberite-60e235362c9662ad01b68141b32f5aae28a2fdfe.tar.xz
cuberite-60e235362c9662ad01b68141b32f5aae28a2fdfe.tar.zst
cuberite-60e235362c9662ad01b68141b32f5aae28a2fdfe.zip
Diffstat (limited to 'src/Generating/BioGen.h')
-rw-r--r--src/Generating/BioGen.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/Generating/BioGen.h b/src/Generating/BioGen.h
index a4cf95a72..20d199611 100644
--- a/src/Generating/BioGen.h
+++ b/src/Generating/BioGen.h
@@ -87,16 +87,20 @@ class cBioGenMulticache :
typedef cBiomeGen super;
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;