summaryrefslogtreecommitdiffstats
path: root/src/Generating/IntGen.h
diff options
context:
space:
mode:
authorSamuel Barney <samjbarney@gmail.com>2015-07-09 19:15:37 +0200
committerSamuel Barney <samjbarney@gmail.com>2015-07-09 19:15:37 +0200
commitaa94a275c603e7e8bd65cf1b7440017217a86c17 (patch)
tree325f7de76044dd8e120919c327d853e605d5828d /src/Generating/IntGen.h
parentNetwork: Fixed ServerHandle's address formatting. (diff)
downloadcuberite-aa94a275c603e7e8bd65cf1b7440017217a86c17.tar
cuberite-aa94a275c603e7e8bd65cf1b7440017217a86c17.tar.gz
cuberite-aa94a275c603e7e8bd65cf1b7440017217a86c17.tar.bz2
cuberite-aa94a275c603e7e8bd65cf1b7440017217a86c17.tar.lz
cuberite-aa94a275c603e7e8bd65cf1b7440017217a86c17.tar.xz
cuberite-aa94a275c603e7e8bd65cf1b7440017217a86c17.tar.zst
cuberite-aa94a275c603e7e8bd65cf1b7440017217a86c17.zip
Diffstat (limited to 'src/Generating/IntGen.h')
-rw-r--r--src/Generating/IntGen.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Generating/IntGen.h b/src/Generating/IntGen.h
index 9cc881639..3f94ec3d0 100644
--- a/src/Generating/IntGen.h
+++ b/src/Generating/IntGen.h
@@ -754,7 +754,7 @@ public:
int IdxZ = z * SizeX;
for (int x = 0; x < SizeX; x++)
{
- size_t val = (size_t)a_Values[x + IdxZ];
+ size_t val = static_cast<size_t>(a_Values[x + IdxZ]);
const cBiomesInGroups & Biomes = (val > bgfRare) ?
rareBiomesInGroups[(val & (bgfRare - 1)) % ARRAYCOUNT(rareBiomesInGroups)] :
biomesInGroups[val % ARRAYCOUNT(biomesInGroups)];
@@ -891,7 +891,7 @@ public:
}
// There's a river, change the output to a river or a frozen river, based on the original biome:
- if (IsBiomeVeryCold((EMCSBiome)a_Values[idx]))
+ if (IsBiomeVeryCold(static_cast<EMCSBiome>(a_Values[idx])))
{
a_Values[idx] = biFrozenRiver;
}