summaryrefslogtreecommitdiffstats
path: root/source/World.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2013-09-09 20:28:50 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2013-09-09 20:28:50 +0200
commit30ac3f583849f68ea7a29df5be6c53b3ef1fe26d (patch)
tree636b62f5bc6159b617f7f11af5db7a86d40a237f /source/World.cpp
parentA few Minecart fixes (diff)
downloadcuberite-30ac3f583849f68ea7a29df5be6c53b3ef1fe26d.tar
cuberite-30ac3f583849f68ea7a29df5be6c53b3ef1fe26d.tar.gz
cuberite-30ac3f583849f68ea7a29df5be6c53b3ef1fe26d.tar.bz2
cuberite-30ac3f583849f68ea7a29df5be6c53b3ef1fe26d.tar.lz
cuberite-30ac3f583849f68ea7a29df5be6c53b3ef1fe26d.tar.xz
cuberite-30ac3f583849f68ea7a29df5be6c53b3ef1fe26d.tar.zst
cuberite-30ac3f583849f68ea7a29df5be6c53b3ef1fe26d.zip
Diffstat (limited to 'source/World.cpp')
-rw-r--r--source/World.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/World.cpp b/source/World.cpp
index 718c86262..1d403994d 100644
--- a/source/World.cpp
+++ b/source/World.cpp
@@ -1517,7 +1517,7 @@ void cWorld::SpawnItemPickups(const cItems & a_Pickups, double a_BlockX, double
float SpeedY = 1;
float SpeedZ = (float)(a_FlyAwaySpeed * (r1.randInt(1000) - 500));
- // (FS #338 Fixed with mid block position spawn, previous TODOs/comments removed)
+ // Pickup doesn't spawn on client without a mid block position. Perhaps the doubles are causing issues?
int MicroX = (int)(floor(a_BlockX) * 32) + 16;
int MicroY = (int)(floor(a_BlockY) * 32) + 16;
int MicroZ = (int)(floor(a_BlockZ) * 32) + 16;
@@ -1539,7 +1539,7 @@ void cWorld::SpawnItemPickups(const cItems & a_Pickups, double a_BlockX, double
MTRand r1;
for (cItems::const_iterator itr = a_Pickups.begin(); itr != a_Pickups.end(); ++itr)
{
- // (FS #338 Fixed with mid block position spawn, previous TODOs/comments removed)
+ // Pickup doesn't spawn on client without a mid block position. Perhaps the doubles are causing issues?
int MicroX = (int)(floor(a_BlockX) * 32) + 16;
int MicroY = (int)(floor(a_BlockY) * 32) + 16;
int MicroZ = (int)(floor(a_BlockZ) * 32) + 16;