diff options
author | Samuel Barney <samjbarney@gmail.com> | 2015-07-09 19:15:37 +0200 |
---|---|---|
committer | Samuel Barney <samjbarney@gmail.com> | 2015-07-09 19:15:37 +0200 |
commit | aa94a275c603e7e8bd65cf1b7440017217a86c17 (patch) | |
tree | 325f7de76044dd8e120919c327d853e605d5828d /src/Generating/IntGen.h | |
parent | Network: Fixed ServerHandle's address formatting. (diff) | |
download | cuberite-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 '')
-rw-r--r-- | src/Generating/IntGen.h | 4 |
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; } |