summaryrefslogtreecommitdiffstats
path: root/src/Generating/IntGen.h
diff options
context:
space:
mode:
authorKingCol13 <48412633+KingCol13@users.noreply.github.com>2021-07-09 19:45:53 +0200
committerGitHub <noreply@github.com>2021-07-09 19:45:53 +0200
commit68776c4d5919638b3cecccd083155cd58ccac573 (patch)
tree8b1d508953c3f3f260ad1b33c40e7ef9674ff0d0 /src/Generating/IntGen.h
parentProtoProxy: encrypt in-place (diff)
downloadcuberite-68776c4d5919638b3cecccd083155cd58ccac573.tar
cuberite-68776c4d5919638b3cecccd083155cd58ccac573.tar.gz
cuberite-68776c4d5919638b3cecccd083155cd58ccac573.tar.bz2
cuberite-68776c4d5919638b3cecccd083155cd58ccac573.tar.lz
cuberite-68776c4d5919638b3cecccd083155cd58ccac573.tar.xz
cuberite-68776c4d5919638b3cecccd083155cd58ccac573.tar.zst
cuberite-68776c4d5919638b3cecccd083155cd58ccac573.zip
Diffstat (limited to 'src/Generating/IntGen.h')
-rw-r--r--src/Generating/IntGen.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Generating/IntGen.h b/src/Generating/IntGen.h
index 4ef8c3452..b56567f9f 100644
--- a/src/Generating/IntGen.h
+++ b/src/Generating/IntGen.h
@@ -1,4 +1,3 @@
-
// IntGen.h
// Declares the cIntGen class and descendants for generating and filtering various 2D arrays of ints
@@ -494,7 +493,7 @@ public:
if (IsBiomeOcean(above) || IsBiomeOcean(below) || IsBiomeOcean(left) || IsBiomeOcean(right))
{
// First convert the value to a regular biome (drop the M flag), then modulo by our biome count:
- val = ToBeach[(val % 128) % ARRAYCOUNT(ToBeach)];
+ val = ToBeach[static_cast<size_t>((val % 128)) % ARRAYCOUNT(ToBeach)];
}
}
a_Values[x + z * SizeX] = val;