From 07a8d49046594686a19673cf51e9691007cc6e9c Mon Sep 17 00:00:00 2001 From: Lion Kortlepel Date: Sat, 22 Jun 2024 23:56:18 +0200 Subject: [PATCH] fix tcp send also --- src/TNetwork.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/TNetwork.cpp b/src/TNetwork.cpp index be5c10b..eabb2fd 100644 --- a/src/TNetwork.cpp +++ b/src/TNetwork.cpp @@ -28,6 +28,7 @@ #include #include #include +#include typedef boost::asio::detail::socket_option::integer rcv_timeout_option; @@ -965,7 +966,7 @@ void TNetwork::SendToAll(TClient* c, const std::vector& Data, bool Self } if (Self || Client.get() != c) { if (Client->IsSynced() || Client->IsSyncing()) { - if (Rel || C == 'W' || C == 'Y' || C == 'V' || C == 'E') { + if (Rel || C == 'W' || C == 'Y' || C == 'V' || C == 'E' || compressBound(Data.size()) > 1024) { if (C == 'O' || C == 'T' || Data.size() > 1000) { if (Data.size() > 400) { auto CompressedData = Data;