LA CLAN PANNETON POUR DÉMÉNAGER FAUT SIGNALER LE (/&)&)&!
This commit is contained in:
parent
8ea5af6ef9
commit
2a7fe7e806
@ -85,7 +85,7 @@ int Server::Ready() {
|
||||
Log("Entrez le seed de la partie: ", false, false);
|
||||
std::cin.getline(m_buf.ptr, BUFFER_LENGTH);
|
||||
try {
|
||||
m_game.seed = std::stoi(m_buf.ptr);
|
||||
m_game.seed = 9370707;//std::stoi(m_buf.ptr);
|
||||
} catch(const std::exception& e) {
|
||||
Log(e.what(), true, false);
|
||||
m_game.seed = 0;
|
||||
|
@ -404,7 +404,7 @@ void Engine::Init() {
|
||||
rt->SetPosition(Vector3f(555, 555, 555));
|
||||
}
|
||||
|
||||
seed = m_conn.getSeed();
|
||||
seed = 9370707;//m_conn.getSeed();
|
||||
m_networkgame = true;
|
||||
}
|
||||
else std::cout << "Erreur de connexion." << std::endl;
|
||||
@ -1358,8 +1358,7 @@ void Engine::Render(float elapsedTime) {
|
||||
|
||||
for (auto& [key, player] : m_players) {
|
||||
RemotePlayer* rt = static_cast<RemotePlayer*>(player);
|
||||
//std::cout << key << ": "; rt->GetPosition().Afficher();
|
||||
glClear(GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT);
|
||||
glClear(GL_STENCIL_BUFFER_BIT);
|
||||
rt->Render(m_animeAtlas, m_shader01, all, elapsedTime);
|
||||
m_otherplayerpos = player->GetPosition(); // Aller chercher GetPosition des deux façon, voir si ça chie.
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user