summaryrefslogtreecommitdiffstats
path: root/src/Generating/IntGen.h
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2015-07-10 23:36:33 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2015-07-10 23:36:33 +0200
commitd8da11ca91cba780bf75dde3133bd5ef5f3fad95 (patch)
treef005bd76d8f22a28c1b95280642c73780c794e26 /src/Generating/IntGen.h
parentNetwork: Fixed ServerHandle's address formatting. (diff)
parentFixed misplaced parens (diff)
downloadcuberite-d8da11ca91cba780bf75dde3133bd5ef5f3fad95.tar
cuberite-d8da11ca91cba780bf75dde3133bd5ef5f3fad95.tar.gz
cuberite-d8da11ca91cba780bf75dde3133bd5ef5f3fad95.tar.bz2
cuberite-d8da11ca91cba780bf75dde3133bd5ef5f3fad95.tar.lz
cuberite-d8da11ca91cba780bf75dde3133bd5ef5f3fad95.tar.xz
cuberite-d8da11ca91cba780bf75dde3133bd5ef5f3fad95.tar.zst
cuberite-d8da11ca91cba780bf75dde3133bd5ef5f3fad95.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;
}