ah.
This commit is contained in:
parent
6c0d65ea22
commit
c24123362a
@ -154,7 +154,6 @@ int Server::Ready() {
|
||||
Log(str.append(play.name).append(" SID: [").append(std::to_string(log->sid)).append("]")
|
||||
.append(" ID: [").append(std::to_string(play.id)).append("]")
|
||||
.append(" TID: [").append(std::to_string(play.tid)).append("]"), false, false);
|
||||
|
||||
play.tid = log->tid;
|
||||
|
||||
sendPack<GameInfo>(sock, &m_game, &m_buf);
|
||||
@ -165,7 +164,7 @@ int Server::Ready() {
|
||||
sendPack<PlayerInfo>(sock, player->getInfo(), &m_buf); // et envoyer les infos des joueurs distants au nouveau joueur.
|
||||
}
|
||||
|
||||
m_players[log->sid] = std::move(conn);
|
||||
m_players[log->sid] = conn;
|
||||
|
||||
delete log;
|
||||
|
||||
|
@ -400,8 +400,8 @@ void Engine::Init() {
|
||||
|
||||
for (auto& [key, player] : m_conn.m_players) {
|
||||
m_players[key] = new RemotePlayer(player);
|
||||
//RemotePlayer* rt = (RemotePlayer*)m_players[key];
|
||||
m_players[key]->SetPosition(Vector3f(555, 555, 555));
|
||||
RemotePlayer* rt = (RemotePlayer*)m_players[key];
|
||||
rt->SetPosition(Vector3f(555, 555, 555));
|
||||
}
|
||||
|
||||
seed = m_conn.getSeed();
|
||||
|
Loading…
Reference in New Issue
Block a user