aboutsummaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
authorest31 <MTest31@outlook.com>2015-05-16 01:19:43 +0200
committerest31 <MTest31@outlook.com>2015-05-16 21:17:28 +0200
commit8dbf68331386f5f6a40ff0f0a77f5390bdca60b9 (patch)
tree2fe3a94702dcda55b41f614466306ab62e0b98bf /src/client.cpp
parent19cbb6b37b9a35df7892bde5aad138266496eb8f (diff)
downloadminetest-8dbf68331386f5f6a40ff0f0a77f5390bdca60b9.tar.gz
minetest-8dbf68331386f5f6a40ff0f0a77f5390bdca60b9.tar.bz2
minetest-8dbf68331386f5f6a40ff0f0a77f5390bdca60b9.zip
Finalize init packets and enable protocol v25
This enables srp.
Diffstat (limited to 'src/client.cpp')
-rw-r--r--src/client.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/client.cpp b/src/client.cpp
index 8cfcc85a7..780b07872 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -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;