diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-03-12 20:39:41 +0100 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-03-12 20:39:41 +0100 |
commit | 10c8c75bb7fdfeb66874ae921e467336e619ef82 (patch) | |
tree | 74ffa4418a91571bb91dee44cee3d450dbc9b70d /source/cChunkGenerator.cpp | |
parent | Fixed MapChunk packets to include (fake) biome data, makes clients happy (diff) | |
download | cuberite-10c8c75bb7fdfeb66874ae921e467336e619ef82.tar cuberite-10c8c75bb7fdfeb66874ae921e467336e619ef82.tar.gz cuberite-10c8c75bb7fdfeb66874ae921e467336e619ef82.tar.bz2 cuberite-10c8c75bb7fdfeb66874ae921e467336e619ef82.tar.lz cuberite-10c8c75bb7fdfeb66874ae921e467336e619ef82.tar.xz cuberite-10c8c75bb7fdfeb66874ae921e467336e619ef82.tar.zst cuberite-10c8c75bb7fdfeb66874ae921e467336e619ef82.zip |
Diffstat (limited to '')
-rw-r--r-- | source/cChunkGenerator.cpp | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/source/cChunkGenerator.cpp b/source/cChunkGenerator.cpp index e6296baa6..7dde581c2 100644 --- a/source/cChunkGenerator.cpp +++ b/source/cChunkGenerator.cpp @@ -5,13 +5,7 @@ #include "cWorld.h"
#include "cWorldGenerator.h"
#include "cWorldGenerator_Test.h"
-
-
-
-
-
-typedef std::pair<int, int> ChunkCoord;
-typedef std::list< ChunkCoord > ChunkCoordList;
+#include "WGFlat.h"
@@ -51,10 +45,14 @@ bool cChunkGenerator::Start(cWorld * a_World, const AString & a_WorldGeneratorNa {
m_World = a_World;
- if (a_WorldGeneratorName.compare("Test") == 0 )
+ if (NoCaseCompare(a_WorldGeneratorName, "Test") == 0 )
{
m_pWorldGenerator = new cWorldGenerator_Test(a_World);
}
+ else if (NoCaseCompare(a_WorldGeneratorName, "flat") == 0)
+ {
+ m_pWorldGenerator = new cWGFlat(a_World);
+ }
else // Default
{
m_pWorldGenerator = new cWorldGenerator(a_World);
|