Ça plane pour pasmoi.

This commit is contained in:
MarcEricMartel
2023-11-26 12:12:09 -05:00
parent ea3d2ffc34
commit 935216e9c3
4 changed files with 22 additions and 16 deletions

View File

@@ -75,11 +75,11 @@ void Connection::getPacks(SOCKET sock) {
void Connection::sendPacks(SOCKET sock, std::unordered_map<uint64_t, Connection*> conns) {
while (!m_output_vector.empty()) {
std::cout << "c";
Output out = m_output_vector.front();
for (auto& [key, conn] : conns) {
if (m_playinfo.id == conn->GetHash(false))
continue;
std::cout << "c";
sendPackTo<Output>(sock, &out, &m_bufout, conn->getAddr());
}
m_output_vector.pop_front();