mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2026-08-27 20:49:40 +00:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 5db5561a30 | |||
| 626f919df0 | |||
| d38d8ffce3 |
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user