summaryrefslogtreecommitdiffstats
path: root/source/Chunk.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-05-17 16:30:18 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-05-17 16:30:18 +0200
commitb7041c1bd28cd1aa4806f6b4d9d17b699b32c1e2 (patch)
treece309077ffc2798130fe199ac7b3e72d11527ea7 /source/Chunk.cpp
parentDistortedHeightmap: Rewritten to use the optimized cPerlinNoise and linear upscaling (diff)
downloadcuberite-b7041c1bd28cd1aa4806f6b4d9d17b699b32c1e2.tar
cuberite-b7041c1bd28cd1aa4806f6b4d9d17b699b32c1e2.tar.gz
cuberite-b7041c1bd28cd1aa4806f6b4d9d17b699b32c1e2.tar.bz2
cuberite-b7041c1bd28cd1aa4806f6b4d9d17b699b32c1e2.tar.lz
cuberite-b7041c1bd28cd1aa4806f6b4d9d17b699b32c1e2.tar.xz
cuberite-b7041c1bd28cd1aa4806f6b4d9d17b699b32c1e2.tar.zst
cuberite-b7041c1bd28cd1aa4806f6b4d9d17b699b32c1e2.zip
Diffstat (limited to 'source/Chunk.cpp')
-rw-r--r--source/Chunk.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/Chunk.cpp b/source/Chunk.cpp
index c8cceb6ed..72313fa08 100644
--- a/source/Chunk.cpp
+++ b/source/Chunk.cpp
@@ -1565,17 +1565,21 @@ void cChunk::CollectPickupsByPlayer(cPlayer * a_Player)
float SqrDist = DiffX * DiffX + DiffY * DiffY + DiffZ * DiffZ;
if (SqrDist < 1.5f * 1.5f) // 1.5 block
{
+ /*
LOG("Pickup %d being collected by player \"%s\", distance %f",
(*itr)->GetUniqueID(), a_Player->GetName().c_str(), SqrDist
);
+ */
MarkDirty();
(reinterpret_cast<cPickup *>(*itr))->CollectedBy( a_Player );
}
else if (SqrDist < 5 * 5)
{
+ /*
LOG("Pickup %d close to player \"%s\", but still too far to collect: %f",
(*itr)->GetUniqueID(), a_Player->GetName().c_str(), SqrDist
);
+ */
}
}
}