summaryrefslogtreecommitdiffstats
path: root/src/World.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2013-12-10 15:19:38 +0100
committerMattes D <github@xoft.cz>2013-12-10 15:19:38 +0100
commit9cfd8f69105b57495028bc8441ad6075f43401c7 (patch)
treee0bc682ffb03d53a513e5a0243c488f0461d0b9a /src/World.cpp
parentupdate d the contrib file. (diff)
parentReadded initial line (diff)
downloadcuberite-9cfd8f69105b57495028bc8441ad6075f43401c7.tar
cuberite-9cfd8f69105b57495028bc8441ad6075f43401c7.tar.gz
cuberite-9cfd8f69105b57495028bc8441ad6075f43401c7.tar.bz2
cuberite-9cfd8f69105b57495028bc8441ad6075f43401c7.tar.lz
cuberite-9cfd8f69105b57495028bc8441ad6075f43401c7.tar.xz
cuberite-9cfd8f69105b57495028bc8441ad6075f43401c7.tar.zst
cuberite-9cfd8f69105b57495028bc8441ad6075f43401c7.zip
Diffstat (limited to '')
-rw-r--r--src/World.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/World.cpp b/src/World.cpp
index eecd02027..564905d33 100644
--- a/src/World.cpp
+++ b/src/World.cpp
@@ -1588,7 +1588,7 @@ bool cWorld::WriteBlockArea(cBlockArea & a_Area, int a_MinBlockX, int a_MinBlock
void cWorld::SpawnItemPickups(const cItems & a_Pickups, double a_BlockX, double a_BlockY, double a_BlockZ, double a_FlyAwaySpeed, bool IsPlayerCreated)
{
MTRand r1;
- a_FlyAwaySpeed /= 1000; // Pre-divide, so that we don't have to divide each time inside the loop
+ a_FlyAwaySpeed /= 100; // Pre-divide, so that we don't have to divide each time inside the loop
for (cItems::const_iterator itr = a_Pickups.begin(); itr != a_Pickups.end(); ++itr)
{
if (!IsValidItem(itr->m_ItemType))
@@ -1597,9 +1597,9 @@ void cWorld::SpawnItemPickups(const cItems & a_Pickups, double a_BlockX, double
continue;
}
- float SpeedX = (float)(a_FlyAwaySpeed * (r1.randInt(1000) - 500));
- float SpeedY = (float)(a_FlyAwaySpeed * (r1.randInt(1000) - 500));
- float SpeedZ = (float)(a_FlyAwaySpeed * (r1.randInt(1000) - 500));
+ float SpeedX = (float)(a_FlyAwaySpeed * (r1.randInt(10) - 5));
+ float SpeedY = (float)(a_FlyAwaySpeed * r1.randInt(50));
+ float SpeedZ = (float)(a_FlyAwaySpeed * (r1.randInt(10) - 5));
cPickup * Pickup = new cPickup(
a_BlockX, a_BlockY, a_BlockZ,