summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfaketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-09-29 23:54:17 +0200
committerfaketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-09-29 23:54:17 +0200
commit1d8921c1517fc65917a8173bec5ccf519f07fee6 (patch)
tree9302df7d4689e7a9b6a66cb43da23fb6cb7d351f
parentForgot to commit BlockBed.cpp (diff)
downloadcuberite-1d8921c1517fc65917a8173bec5ccf519f07fee6.tar
cuberite-1d8921c1517fc65917a8173bec5ccf519f07fee6.tar.gz
cuberite-1d8921c1517fc65917a8173bec5ccf519f07fee6.tar.bz2
cuberite-1d8921c1517fc65917a8173bec5ccf519f07fee6.tar.lz
cuberite-1d8921c1517fc65917a8173bec5ccf519f07fee6.tar.xz
cuberite-1d8921c1517fc65917a8173bec5ccf519f07fee6.tar.zst
cuberite-1d8921c1517fc65917a8173bec5ccf519f07fee6.zip
-rw-r--r--source/Player.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/Player.cpp b/source/Player.cpp
index a0be947bf..4ac71b25a 100644
--- a/source/Player.cpp
+++ b/source/Player.cpp
@@ -151,9 +151,11 @@ void cPlayer::SpawnOn(cClientHandle & a_Client)
);
*/
- if (m_bVisible)
+ if (m_bVisible && (m_ClientHandle != (&a_Client)))
{
a_Client.SendPlayerSpawn(*this);
+ a_Client.SendEntHeadLook(*this);
+ a_Client.SendEntityEquipment(*this, 0, m_Inventory.GetEquippedItem() );
}
}
@@ -200,6 +202,7 @@ void cPlayer::Tick(float a_Dt)
if (m_bDirtyOrientation)
{
m_World->BroadcastEntRelMoveLook(*this, (char)(DiffX * 32), (char)(DiffY * 32), (char)(DiffZ * 32), m_ClientHandle);
+ m_World->BroadcastEntHeadLook(*this, m_ClientHandle);
m_bDirtyOrientation = false;
}
else