summaryrefslogtreecommitdiffstats
path: root/src/Generating
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2016-02-24 21:29:38 +0100
committerMattes D <github@xoft.cz>2016-02-24 21:29:38 +0100
commit7f76c7f3625d6e26f423c68dc0bbcb859cad2c06 (patch)
treecb6f0bbcdbd67f62a3073868fe78f7e7c0b167bd /src/Generating
parentMerge pull request #3044 from LogicParrot/chunkRemove (diff)
parentFixed LinearUpscale's bounds checking. (diff)
downloadcuberite-7f76c7f3625d6e26f423c68dc0bbcb859cad2c06.tar
cuberite-7f76c7f3625d6e26f423c68dc0bbcb859cad2c06.tar.gz
cuberite-7f76c7f3625d6e26f423c68dc0bbcb859cad2c06.tar.bz2
cuberite-7f76c7f3625d6e26f423c68dc0bbcb859cad2c06.tar.lz
cuberite-7f76c7f3625d6e26f423c68dc0bbcb859cad2c06.tar.xz
cuberite-7f76c7f3625d6e26f423c68dc0bbcb859cad2c06.tar.zst
cuberite-7f76c7f3625d6e26f423c68dc0bbcb859cad2c06.zip
Diffstat (limited to 'src/Generating')
-rw-r--r--src/Generating/IntGen.h4
-rw-r--r--src/Generating/ProtIntGen.h14
2 files changed, 15 insertions, 3 deletions
diff --git a/src/Generating/IntGen.h b/src/Generating/IntGen.h
index 708dc0550..c43ddce9f 100644
--- a/src/Generating/IntGen.h
+++ b/src/Generating/IntGen.h
@@ -29,9 +29,9 @@ by using templates.
#pragma once
-#include "../BiomeDef.h"
-
#include <tuple>
+#include "../BiomeDef.h"
+#include "../Noise/Noise.h"
diff --git a/src/Generating/ProtIntGen.h b/src/Generating/ProtIntGen.h
index c0c7102d2..08143cf6d 100644
--- a/src/Generating/ProtIntGen.h
+++ b/src/Generating/ProtIntGen.h
@@ -28,13 +28,25 @@ overhead; this however means that there's (an arbitrary) limit to the size of th
+/** Maximum size of the generated area.
+This value is used only if there isn't an override in place.
+To adjust the actual buffer size, just do a "#define PROT_INT_BUFFER_SIZE 9000" before including this header.
+Note, however, that you should use a consistent value throughout a single project. */
+#ifndef PROT_INT_BUFFER_SIZE
+ #define PROT_INT_BUFFER_SIZE 900
+#endif
+
+
+
+
+
/** Interface that all the generator classes provide. */
class cProtIntGen
{
protected:
/** Maximum size of the generated area.
Adjust the constant if you need larger areas, these are just so that we can use fixed-size buffers. */
- static const int m_BufferSize = 900;
+ static const int m_BufferSize = PROT_INT_BUFFER_SIZE;
public: