From 926030e89aa28e8810be69808e531efb43e1caf3 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Sun, 23 Sep 2012 16:39:12 +0000 Subject: [PATCH] Fixed players not spawning to others when they join the server. Ref.: http://forum.mc-server.org/showthread.php?tid=434&pid=4633#pid4633 git-svn-id: http://mc-server.googlecode.com/svn/trunk@876 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cClientHandle.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/cClientHandle.cpp b/source/cClientHandle.cpp index f13be381b..75efce3dc 100644 --- a/source/cClientHandle.cpp +++ b/source/cClientHandle.cpp @@ -263,6 +263,9 @@ void cClientHandle::Authenticate(void) m_Player->Initialize(World); StreamChunks(); m_State = csDownloadingWorld; + + // Broadcast this player's spawning to all other players in the same chunk + m_Player->GetWorld()->BroadcastSpawn(*m_Player, this); }