mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Finalize init packets and enable protocol v25
This enables srp.
This commit is contained in:
parent
19cbb6b37b
commit
8dbf683313
6 changed files with 38 additions and 28 deletions
|
@ -1000,8 +1000,9 @@ void Client::sendInit(const std::string &playerName)
|
|||
{
|
||||
NetworkPacket pkt(TOSERVER_INIT, 1 + 2 + 2 + (1 + playerName.size()));
|
||||
|
||||
// TODO (later) actually send supported compression modes
|
||||
pkt << (u8) SER_FMT_VER_HIGHEST_READ << (u8) 42;
|
||||
// we don't support network compression yet
|
||||
u16 supp_comp_modes = NETPROTO_COMPRESSION_NONE;
|
||||
pkt << (u8) SER_FMT_VER_HIGHEST_READ << (u16) supp_comp_modes;
|
||||
pkt << (u16) CLIENT_PROTOCOL_VERSION_MIN << (u16) CLIENT_PROTOCOL_VERSION_MAX;
|
||||
pkt << playerName;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue