summaryrefslogtreecommitdiffstats
path: root/source/Chunk.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-05-13 22:26:45 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-05-13 22:26:45 +0200
commitfd26595b56495f50f0750635c330eb4337380048 (patch)
tree2f9da38398da0b635189f94a22568e5cca9add7c /source/Chunk.cpp
parentLinearUpscale: postfixed with InPlace to differentiate from a future src/dst version (diff)
downloadcuberite-fd26595b56495f50f0750635c330eb4337380048.tar
cuberite-fd26595b56495f50f0750635c330eb4337380048.tar.gz
cuberite-fd26595b56495f50f0750635c330eb4337380048.tar.bz2
cuberite-fd26595b56495f50f0750635c330eb4337380048.tar.lz
cuberite-fd26595b56495f50f0750635c330eb4337380048.tar.xz
cuberite-fd26595b56495f50f0750635c330eb4337380048.tar.zst
cuberite-fd26595b56495f50f0750635c330eb4337380048.zip
Diffstat (limited to 'source/Chunk.cpp')
-rw-r--r--source/Chunk.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/source/Chunk.cpp b/source/Chunk.cpp
index 0e10afd55..c8cceb6ed 100644
--- a/source/Chunk.cpp
+++ b/source/Chunk.cpp
@@ -1565,9 +1565,18 @@ 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
+ );
+ }
}
}