SQC-15_online #1
@ -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());
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user