fix player login
This commit is contained in:
@@ -119,12 +119,12 @@ void ServerConnexion::HandlePacket(const protocol::PlayerLoginPacket* packet) {
|
|||||||
protocol::UpdateGameStatePacket statePacket(m_Server->GetGame().GetGameState());
|
protocol::UpdateGameStatePacket statePacket(m_Server->GetGame().GetGameState());
|
||||||
SendPacket(&statePacket);
|
SendPacket(&statePacket);
|
||||||
|
|
||||||
|
m_Server->GetGame().NotifyListeners(&game::GameListener::OnPlayerJoin, m_ID);
|
||||||
|
|
||||||
protocol::WorldBeginDataPacket headerDataPacket(m_Server->GetGame().GetWorld());
|
protocol::WorldBeginDataPacket headerDataPacket(m_Server->GetGame().GetWorld());
|
||||||
protocol::WorldDataPacket dataPacket(m_Server->GetGame().GetWorld());
|
protocol::WorldDataPacket dataPacket(m_Server->GetGame().GetWorld());
|
||||||
SendPacket(&headerDataPacket);
|
SendPacket(&headerDataPacket);
|
||||||
SendPacket(&dataPacket);
|
SendPacket(&dataPacket);
|
||||||
|
|
||||||
m_Server->GetGame().NotifyListeners(&game::GameListener::OnPlayerJoin, m_ID);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user