Skip to content

Commit

Permalink
improve: enabling checksum sequence method/compression in OTClient (#821
Browse files Browse the repository at this point in the history
)

In this feature update, the OTClient Redemption now includes support for both the Checksum Sequence Method and compression. As a result, these features will be enabled by default to improve performance and data integrity for users.
  • Loading branch information
mehah authored Jan 28, 2023
1 parent b2fdfc7 commit f853dbc
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/server/network/protocol/protocolgame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -486,14 +486,10 @@ void ProtocolGame::onRecvFirstMessage(NetworkMessage &msg)
return;
}

setChecksumMethod(CHECKSUM_METHOD_SEQUENCE);
enableCompression();

OperatingSystem_t operatingSystem = static_cast<OperatingSystem_t>(msg.get<uint16_t>());
if (operatingSystem <= CLIENTOS_NEW_MAC) {
setChecksumMethod(CHECKSUM_METHOD_SEQUENCE);
enableCompression();
} else {
setChecksumMethod(CHECKSUM_METHOD_ADLER32);
}


version = msg.get<uint16_t>(); // Protocol version

Expand Down

0 comments on commit f853dbc

Please sign in to comment.