fix missed reading

add gm check back
This commit is contained in:
Aaron Kimbre 2023-08-04 21:53:03 -05:00
parent 845e499510
commit 612d0d6a56
2 changed files with 2 additions and 1 deletions

View File

@ -104,6 +104,7 @@ void ChatPacketHandler::HandleFriendRequest(Packet* packet) {
uint32_t spacing{}; uint32_t spacing{};
inStream.Read(spacing); inStream.Read(spacing);
LUWString playerName(33); LUWString playerName(33);
inStream.Read(playerName);
char isBestFriendRequest{}; char isBestFriendRequest{};
inStream.Read(isBestFriendRequest); inStream.Read(isBestFriendRequest);

View File

@ -905,7 +905,7 @@ void HandlePacket(Packet* packet) {
delete res; delete res;
// Developers may skip this check // Developers may skip this check
if (clientDatabaseChecksum.string != databaseChecksum) { if (gmLevel < 8 && clientDatabaseChecksum.string != databaseChecksum) {
Game::logger->Log("WorldServer", "Client's database checksum does not match the server's, aborting connection."); Game::logger->Log("WorldServer", "Client's database checksum does not match the server's, aborting connection.");
Game::server->Disconnect(packet->systemAddress, eServerDisconnectIdentifiers::WRONG_GAME_VERSION); Game::server->Disconnect(packet->systemAddress, eServerDisconnectIdentifiers::WRONG_GAME_VERSION);
return; return;