This commit is contained in:
MarcEricMartel 2023-11-24 15:01:32 -05:00
parent 9bf5188e0f
commit 35c55f2e26

View File

@ -398,8 +398,11 @@ void Engine::Init() {
std::cout << "Seed recu du serveur: " << std::to_string(m_conn.getSeed()) << "!" << std::endl;
m_player = Player(m_conn.getOrigin().position);
for (auto& [key, player] : m_conn.m_players)
for (auto& [key, player] : m_conn.m_players) {
m_players[key] = new RemotePlayer(player);
RemotePlayer* rt = (RemotePlayer*)m_players[key];
rt->SetPosition(Vector3f(555, 555, 555));
}
seed = m_conn.getSeed();
m_networkgame = true;