débébitter

This commit is contained in:
MarcEricMartel 2023-11-24 14:33:48 -05:00
parent 7ccecdfd4a
commit 3043b1ff6b
2 changed files with 1 additions and 3 deletions

View File

@ -77,7 +77,7 @@ void Connection::sendPacks(SOCKET sock, std::unordered_map<uint64_t, Connection*
while (m_last_out < m_output_manifest.size()) { while (m_last_out < m_output_manifest.size()) {
Output out = m_output_vector.at(m_last_out++); Output out = m_output_vector.at(m_last_out++);
for (auto& [key, conn] : conns) { for (auto& [key, conn] : conns) {
if (m_playinfo.id == conn->GetHash(true)) if (m_playinfo.id == conn->GetHash(false))
continue; continue;
sendPackTo<Output>(sock, &out, &m_bufout, conn->getAddr()); sendPackTo<Output>(sock, &out, &m_bufout, conn->getAddr());
} }

View File

@ -201,8 +201,6 @@ void Server::Run() {
sendPack<Sync>(conn->getSock(), &sync, &m_buf); sendPack<Sync>(conn->getSock(), &sync, &m_buf);
} }
std::cout << players << " players." << std::endl;
while (!endgame) { while (!endgame) {
for (auto& [key, conn] : m_players) { for (auto& [key, conn] : m_players) {
conn->getPacks(m_sock_udp); conn->getPacks(m_sock_udp);