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;