SQC-15_online #1

Merged
memartel merged 349 commits from SQC-15_online into master 2023-12-10 17:41:26 -05:00
2 changed files with 1 additions and 3 deletions
Showing only changes of commit 3043b1ff6b - Show all commits

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);