summaryrefslogtreecommitdiffstats
path: root/source/World.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-03-02 20:57:09 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-03-02 20:57:09 +0100
commit6744738a85c60238585dcf72af211f852fd7e4c6 (patch)
tree47f36786b377a69097dc479ea9ab8991b35eb9d5 /source/World.cpp
parentAdded the anvil block (diff)
downloadcuberite-6744738a85c60238585dcf72af211f852fd7e4c6.tar
cuberite-6744738a85c60238585dcf72af211f852fd7e4c6.tar.gz
cuberite-6744738a85c60238585dcf72af211f852fd7e4c6.tar.bz2
cuberite-6744738a85c60238585dcf72af211f852fd7e4c6.tar.lz
cuberite-6744738a85c60238585dcf72af211f852fd7e4c6.tar.xz
cuberite-6744738a85c60238585dcf72af211f852fd7e4c6.tar.zst
cuberite-6744738a85c60238585dcf72af211f852fd7e4c6.zip
Diffstat (limited to 'source/World.cpp')
-rw-r--r--source/World.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/World.cpp b/source/World.cpp
index 84874258f..2cfe56d57 100644
--- a/source/World.cpp
+++ b/source/World.cpp
@@ -250,10 +250,10 @@ cWorld::cWorld(const AString & a_WorldName) :
m_BlockTickQueueCopy.reserve(1000);
// Simulators:
- m_SimulatorManager = new cSimulatorManager(*this);
+ m_SimulatorManager = new cSimulatorManager(*this);
m_WaterSimulator = InitializeFluidSimulator(IniFile, "Water", E_BLOCK_WATER, E_BLOCK_STATIONARY_WATER);
m_LavaSimulator = InitializeFluidSimulator(IniFile, "Lava", E_BLOCK_LAVA, E_BLOCK_STATIONARY_LAVA);
- m_SandSimulator = new cSandSimulator(*this);
+ m_SandSimulator = new cSandSimulator(*this, IniFile);
m_FireSimulator = new cFireSimulator(*this, IniFile);
m_RedstoneSimulator = new cRedstoneSimulator(*this);
@@ -1166,9 +1166,9 @@ void cWorld::SpawnItemPickups(const cItems & a_Pickups, double a_BlockX, double
float SpeedY = (float)(a_FlyAwaySpeed * r1.randInt(1000));
float SpeedZ = (float)(a_FlyAwaySpeed * (r1.randInt(1000) - 500));
cPickup * Pickup = new cPickup(
- (int)(a_BlockX * 32) + r1.randInt(16) + r1.randInt(16),
- (int)(a_BlockY * 32) + r1.randInt(16) + r1.randInt(16),
- (int)(a_BlockZ * 32) + r1.randInt(16) + r1.randInt(16),
+ (int)(a_BlockX * 32) + (r1.randInt(16) + r1.randInt(16) - 16),
+ (int)(a_BlockY * 32) + (r1.randInt(16) + r1.randInt(16) - 16),
+ (int)(a_BlockZ * 32) + (r1.randInt(16) + r1.randInt(16) - 16),
*itr, SpeedX, SpeedY, SpeedZ
);
Pickup->Initialize(this);