Added preview state packet.
This commit is contained in:
parent
09d830d02e
commit
1f272b7aba
|
@ -98,8 +98,7 @@ function g_game.getClientProtocolVersion(client)
|
||||||
[985] = 977,
|
[985] = 977,
|
||||||
[986] = 978,
|
[986] = 978,
|
||||||
[1001] = 979,
|
[1001] = 979,
|
||||||
[1002] = 980,
|
[1002] = 980
|
||||||
[1051] = 1000 -- no idea what protocol version is required (1051 doesn't work)
|
|
||||||
}
|
}
|
||||||
return clients[client] or client
|
return clients[client] or client
|
||||||
end
|
end
|
||||||
|
|
|
@ -56,9 +56,14 @@ void ProtocolGame::sendLoginPacket(uint challengeTimestamp, uint8 challengeRando
|
||||||
msg->addU16(g_game.getOs());
|
msg->addU16(g_game.getOs());
|
||||||
msg->addU16(g_game.getProtocolVersion());
|
msg->addU16(g_game.getProtocolVersion());
|
||||||
|
|
||||||
if(g_game.getProtocolVersion() >= 971) {
|
// This may only be required by the flash client
|
||||||
|
if(g_game.getClientVersion() >= 980) {
|
||||||
msg->addU32(g_game.getClientVersion());
|
msg->addU32(g_game.getClientVersion());
|
||||||
msg->addU8(0); // clientType
|
msg->addU8(0); // client type
|
||||||
|
}
|
||||||
|
|
||||||
|
if(g_game.getClientVersion() >= 1050) {
|
||||||
|
msg->addU8(0); // preview state
|
||||||
}
|
}
|
||||||
|
|
||||||
int offset = msg->getMessageSize();
|
int offset = msg->getMessageSize();
|
||||||
|
|
Loading…
Reference in New Issue