summaryrefslogtreecommitdiffstats
path: root/src/Chunk.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-01-16 20:31:06 +0100
committermadmaxoft <github@xoft.cz>2014-01-16 20:31:06 +0100
commitde4ac553984c01f2aa94d42637c05ec75dc6680c (patch)
tree26c4f6d31c968ee57980365da7f55acf525cbc03 /src/Chunk.cpp
parentFixed whitespace in previous commit. (diff)
downloadcuberite-de4ac553984c01f2aa94d42637c05ec75dc6680c.tar
cuberite-de4ac553984c01f2aa94d42637c05ec75dc6680c.tar.gz
cuberite-de4ac553984c01f2aa94d42637c05ec75dc6680c.tar.bz2
cuberite-de4ac553984c01f2aa94d42637c05ec75dc6680c.tar.lz
cuberite-de4ac553984c01f2aa94d42637c05ec75dc6680c.tar.xz
cuberite-de4ac553984c01f2aa94d42637c05ec75dc6680c.tar.zst
cuberite-de4ac553984c01f2aa94d42637c05ec75dc6680c.zip
Diffstat (limited to 'src/Chunk.cpp')
-rw-r--r--src/Chunk.cpp17
1 files changed, 15 insertions, 2 deletions
diff --git a/src/Chunk.cpp b/src/Chunk.cpp
index fb26e983d..0735c8144 100644
--- a/src/Chunk.cpp
+++ b/src/Chunk.cpp
@@ -1743,7 +1743,14 @@ bool cChunk::AddClient(cClientHandle* a_Client)
for (cEntityList::iterator itr = m_Entities.begin(); itr != m_Entities.end(); ++itr )
{
- LOGD("cChunk: Entity #%d (%s) at [%i, %i, %i] spawning for player \"%s\"", (*itr)->GetUniqueID(), (*itr)->GetClass(), m_PosX, m_PosY, m_PosZ, a_Client->GetUsername().c_str());
+ /*
+ // DEBUG:
+ LOGD("cChunk: Entity #%d (%s) at [%i, %i, %i] spawning for player \"%s\"",
+ (*itr)->GetUniqueID(), (*itr)->GetClass(),
+ m_PosX, m_PosY, m_PosZ,
+ a_Client->GetUsername().c_str()
+ );
+ */
(*itr)->SpawnOn(*a_Client);
}
return true;
@@ -1768,7 +1775,13 @@ void cChunk::RemoveClient( cClientHandle* a_Client )
{
for (cEntityList::iterator itr = m_Entities.begin(); itr != m_Entities.end(); ++itr )
{
- LOGD("chunk [%i, %i] destroying entity #%i for player \"%s\"", m_PosX, m_PosZ, (*itr)->GetUniqueID(), a_Client->GetUsername().c_str() );
+ /*
+ // DEBUG:
+ LOGD("chunk [%i, %i] destroying entity #%i for player \"%s\"",
+ m_PosX, m_PosZ,
+ (*itr)->GetUniqueID(), a_Client->GetUsername().c_str()
+ );
+ */
a_Client->SendDestroyEntity(*(*itr));
}
}