débébitter
This commit is contained in:
parent
7ccecdfd4a
commit
3043b1ff6b
@ -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());
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user