Fixed position confirming for 1.3.2 (FS #245)
git-svn-id: http://mc-server.googlecode.com/svn/trunk@877 0a769ca7-a7f5-676a-18bf-c427514a06d6master
parent
926030e89a
commit
a3b7dbb13d
|
@ -297,6 +297,9 @@ void cProtocol132::SendLogin(const cPlayer & a_Player, const cWorld & a_World)
|
||||||
Flush();
|
Flush();
|
||||||
|
|
||||||
SendCompass(a_World);
|
SendCompass(a_World);
|
||||||
|
|
||||||
|
// Send the initial position (so that confirmation works, FS #245):
|
||||||
|
SendPlayerMoveLook();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -241,6 +241,8 @@ void cClientHandle::Authenticate(void)
|
||||||
m_Player->SetIP (m_Socket.GetIPString());
|
m_Player->SetIP (m_Socket.GetIPString());
|
||||||
|
|
||||||
cRoot::Get()->GetPluginManager()->CallHook(cPluginManager::HOOK_PLAYER_SPAWN, 1, m_Player);
|
cRoot::Get()->GetPluginManager()->CallHook(cPluginManager::HOOK_PLAYER_SPAWN, 1, m_Player);
|
||||||
|
|
||||||
|
m_ConfirmPosition = m_Player->GetPosition();
|
||||||
|
|
||||||
// Return a server login packet
|
// Return a server login packet
|
||||||
m_Protocol->SendLogin(*m_Player, *World);
|
m_Protocol->SendLogin(*m_Player, *World);
|
||||||
|
@ -1499,7 +1501,6 @@ void cClientHandle::SendConfirmPosition(void)
|
||||||
cRoot::Get()->GetServer()->BroadcastChat(m_Username + " joined the game!", this);
|
cRoot::Get()->GetServer()->BroadcastChat(m_Username + " joined the game!", this);
|
||||||
}
|
}
|
||||||
|
|
||||||
m_ConfirmPosition = m_Player->GetPosition();
|
|
||||||
SendPlayerMoveLook();
|
SendPlayerMoveLook();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue