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()) {
Output out = m_output_vector.at(m_last_out++);
for (auto& [key, conn] : conns) {
if (m_playinfo.id == conn->GetHash(true))
if (m_playinfo.id == conn->GetHash(false))
continue;
sendPackTo<Output>(sock, &out, &m_bufout, conn->getAddr());
}

View File

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