From 30ac3f583849f68ea7a29df5be6c53b3ef1fe26d Mon Sep 17 00:00:00 2001 From: Tiger Wang Date: Mon, 9 Sep 2013 19:28:50 +0100 Subject: Added a few changes [SEE DESC] * Revised pickup comments * SlotArea pickup tossing now reflects Player.cpp * Removed unneeded ItemShears comment (was working already) * Sand and gravel pickups spawn with correct speed --- source/World.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/World.cpp') 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; -- cgit v1.2.3