mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-23 14:07:20 +00:00
fix missed reading
add gm check back
This commit is contained in:
parent
845e499510
commit
612d0d6a56
@ -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);
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user