summaryrefslogtreecommitdiffstats
path: root/src/Generating/HeiGen.h
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-10-19 14:01:59 +0200
committerMattes D <github@xoft.cz>2014-10-19 14:01:59 +0200
commite0cfbc4d8526a1a1d3afa8fc0774358f4f18b7e2 (patch)
treed61cac715328f06c58c506dd74b8ee818a0c28ad /src/Generating/HeiGen.h
parentcLuaState: cMonster descendants don't push their specific type. (diff)
downloadcuberite-e0cfbc4d8526a1a1d3afa8fc0774358f4f18b7e2.tar
cuberite-e0cfbc4d8526a1a1d3afa8fc0774358f4f18b7e2.tar.gz
cuberite-e0cfbc4d8526a1a1d3afa8fc0774358f4f18b7e2.tar.bz2
cuberite-e0cfbc4d8526a1a1d3afa8fc0774358f4f18b7e2.tar.lz
cuberite-e0cfbc4d8526a1a1d3afa8fc0774358f4f18b7e2.tar.xz
cuberite-e0cfbc4d8526a1a1d3afa8fc0774358f4f18b7e2.tar.zst
cuberite-e0cfbc4d8526a1a1d3afa8fc0774358f4f18b7e2.zip
Diffstat (limited to '')
-rw-r--r--src/Generating/HeiGen.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Generating/HeiGen.h b/src/Generating/HeiGen.h
index 5c106c7d9..9eab9a94f 100644
--- a/src/Generating/HeiGen.h
+++ b/src/Generating/HeiGen.h
@@ -45,7 +45,7 @@ class cHeiGenCache :
public cTerrainHeightGen
{
public:
- cHeiGenCache(cTerrainHeightGen & a_HeiGenToCache, int a_CacheSize); // Doesn't take ownership of a_HeiGenToCache
+ cHeiGenCache(cTerrainHeightGenPtr a_HeiGenToCache, int a_CacheSize);
~cHeiGenCache();
// cTerrainHeightGen overrides:
@@ -57,7 +57,7 @@ public:
protected:
- cTerrainHeightGen & m_HeiGenToCache;
+ cTerrainHeightGenPtr m_HeiGenToCache;
struct sCacheData
{
@@ -131,7 +131,7 @@ class cHeiGenBiomal :
public cTerrainHeightGen
{
public:
- cHeiGenBiomal(int a_Seed, cBiomeGen & a_BiomeGen) :
+ cHeiGenBiomal(int a_Seed, cBiomeGenPtr a_BiomeGen) :
m_Noise(a_Seed),
m_BiomeGen(a_BiomeGen)
{
@@ -141,8 +141,8 @@ protected:
typedef cChunkDef::BiomeMap BiomeNeighbors[3][3];
- cNoise m_Noise;
- cBiomeGen & m_BiomeGen;
+ cNoise m_Noise;
+ cBiomeGenPtr m_BiomeGen;
// Per-biome terrain generator parameters:
struct sGenParam