Render other players
This commit is contained in:
@@ -190,7 +190,7 @@ void Server::Run() {
|
||||
m_world->BuildWorld();
|
||||
|
||||
for (auto& [key, conn] : m_players) { // Creation des instances de joueurs et premier sync.
|
||||
conn->player = std::make_unique<Player>(Vector3f(8.5f, CHUNK_SIZE_Y + 1.8f, 8.5f));
|
||||
conn->player = std::make_unique<Player>(Vector3f(128.5f, CHUNK_SIZE_Y + 1.8f, 128.5f));
|
||||
Sync sync;
|
||||
sync.position = conn->player->GetPosition();
|
||||
sync.hp = conn->player->GetHP();
|
||||
|
Reference in New Issue
Block a user