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
master
madmaxoft@gmail.com 2012-09-23 16:39:12 +00:00
parent 578c9c4694
commit 926030e89a
1 changed files with 3 additions and 0 deletions

View File

@ -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);
}