summaryrefslogtreecommitdiffstats
path: root/src/Generating/ProtIntGen.h
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2016-02-24 14:56:43 +0100
committerMattes D <github@xoft.cz>2016-02-24 14:57:35 +0100
commit44571105798ad186e66a5f8f16df99fef3f21508 (patch)
treedfd81b3cf21fa81d3dc72502dba18f9fff981400 /src/Generating/ProtIntGen.h
parentRemoved old and wrong code from Globals.h. (diff)
downloadcuberite-44571105798ad186e66a5f8f16df99fef3f21508.tar
cuberite-44571105798ad186e66a5f8f16df99fef3f21508.tar.gz
cuberite-44571105798ad186e66a5f8f16df99fef3f21508.tar.bz2
cuberite-44571105798ad186e66a5f8f16df99fef3f21508.tar.lz
cuberite-44571105798ad186e66a5f8f16df99fef3f21508.tar.xz
cuberite-44571105798ad186e66a5f8f16df99fef3f21508.tar.zst
cuberite-44571105798ad186e66a5f8f16df99fef3f21508.zip
Diffstat (limited to '')
-rw-r--r--src/Generating/ProtIntGen.h14
1 files changed, 13 insertions, 1 deletions
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: