Compare commits

...

3 Commits

Author SHA1 Message Date
Tixx 5db5561a30 Add debug log for specific data condition in ServerSend 2026-08-09 01:18:39 +02:00
Tixx 626f919df0 Update GlobalHandler.cpp 2026-08-09 01:05:29 +02:00
Tixx d38d8ffce3 Add t to TCP packets 2026-08-02 21:36:54 +02:00
+9 -1
View File
@@ -61,6 +61,10 @@ void GameSend(std::string_view Data) {
}
void ServerSend(std::string Data, bool Rel) {
if (Data.length() > 1 && Data[0] == 't') {
debug("hey");
}
if (Terminate || Data.empty())
return;
if (Data.find("Zp") != std::string::npos && Data.size() > 500) {
@@ -73,7 +77,7 @@ void ServerSend(std::string Data, bool Rel) {
C = Data.at(0);
if (C == 'O' || C == 'T')
Ack = true;
if (C == 'N' || C == 'W' || C == 'Y' || C == 'V' || C == 'E' || C == 'C')
if (C == 'N' || C == 'W' || C == 'Y' || C == 'V' || C == 'E' || C == 'C' || C == 't')
Rel = true;
if (compressBound(Data.size()) > 1024)
Rel = true;
@@ -198,6 +202,10 @@ void ParserAsync(std::string_view Data) {
default:
break;
}
if (Data.length() > 1 && Data[0] == 't') {
debug("omg?");
debug(Data.data());
}
GameSend(Data);
}
void ServerParser(std::string_view Data) {