aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/HellRandomLevelSource.cpp
diff options
context:
space:
mode:
authorvoid_17 <heroerror3@gmail.com>2026-03-02 15:53:32 +0700
committervoid_17 <heroerror3@gmail.com>2026-03-02 15:53:32 +0700
commitd63f79325f85e014361eb8cf1e41eaebedb1ae71 (patch)
treed9f28714afd516bc2450f33b0a77c5e05ff4de90 /Minecraft.World/HellRandomLevelSource.cpp
parentd6ec138710461294c3ffd2723bc8a9f212d3471f (diff)
Get rid of MSVC's __int64
Use either int64_t, uint64_t or long long and unsigned long long, defined as per C++11 standard
Diffstat (limited to 'Minecraft.World/HellRandomLevelSource.cpp')
-rw-r--r--Minecraft.World/HellRandomLevelSource.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/Minecraft.World/HellRandomLevelSource.cpp b/Minecraft.World/HellRandomLevelSource.cpp
index 10194f7d..3d67d0f8 100644
--- a/Minecraft.World/HellRandomLevelSource.cpp
+++ b/Minecraft.World/HellRandomLevelSource.cpp
@@ -7,7 +7,7 @@
#include "BiomeSource.h"
#include "HellRandomLevelSource.h"
-HellRandomLevelSource::HellRandomLevelSource(Level *level, __int64 seed)
+HellRandomLevelSource::HellRandomLevelSource(Level *level, int64_t seed)
{
int xzSize = level->getLevelData()->getXZSize();
int hellScale = level->getLevelData()->getHellScale();
@@ -224,7 +224,7 @@ void HellRandomLevelSource::buildSurfaces(int xOffs, int zOffs, byteArray blocks
if(random->nextInt(16) == 0)
{
top = (byte) Tile::netherStalk_Id;
-
+
// Place the nether wart on top of the soul sand
y += 1;
int genDepthMinusOne = Level::genDepthMinusOne; // Take into local int for PS4 as min takes a reference to the const int there and then needs the value to exist for the linker
@@ -430,8 +430,8 @@ void HellRandomLevelSource::postProcess(ChunkSource *parent, int xt, int zt)
// we need to use a separate random - have used the same initialisation code as used in RandomLevelSource::postProcess to make sure this random value
// is consistent for each world generation. Also changed all uses of random here to pprandom.
pprandom->setSeed(level->getSeed());
- __int64 xScale = pprandom->nextLong() / 2 * 2 + 1;
- __int64 zScale = pprandom->nextLong() / 2 * 2 + 1;
+ int64_t xScale = pprandom->nextLong() / 2 * 2 + 1;
+ int64_t zScale = pprandom->nextLong() / 2 * 2 + 1;
pprandom->setSeed(((xt * xScale) + (zt * zScale)) ^ level->getSeed());
netherBridgeFeature->postProcess(level, pprandom, xt, zt);
@@ -497,7 +497,7 @@ void HellRandomLevelSource::postProcess(ChunkSource *parent, int xt, int zt)
}
HeavyTile::instaFall = false;
-
+
app.processSchematics(parent->getChunk(xt,zt));
}