mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2026-08-28 04:53:20 +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) {
|
void ServerSend(std::string Data, bool Rel) {
|
||||||
|
if (Data.length() > 1 && Data[0] == 't') {
|
||||||
|
debug("hey");
|
||||||
|
}
|
||||||
|
|
||||||
if (Terminate || Data.empty())
|
if (Terminate || Data.empty())
|
||||||
return;
|
return;
|
||||||
if (Data.find("Zp") != std::string::npos && Data.size() > 500) {
|
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);
|
C = Data.at(0);
|
||||||
if (C == 'O' || C == 'T')
|
if (C == 'O' || C == 'T')
|
||||||
Ack = true;
|
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;
|
Rel = true;
|
||||||
if (compressBound(Data.size()) > 1024)
|
if (compressBound(Data.size()) > 1024)
|
||||||
Rel = true;
|
Rel = true;
|
||||||
@@ -198,6 +202,10 @@ void ParserAsync(std::string_view Data) {
|
|||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
if (Data.length() > 1 && Data[0] == 't') {
|
||||||
|
debug("omg?");
|
||||||
|
debug(Data.data());
|
||||||
|
}
|
||||||
GameSend(Data);
|
GameSend(Data);
|
||||||
}
|
}
|
||||||
void ServerParser(std::string_view Data) {
|
void ServerParser(std::string_view Data) {
|
||||||
|
|||||||
Reference in New Issue
Block a user