mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Client: better m_proto_ver initialisation
Previously, m_proto_ver was set to the serialisation version inside the legacy init packet. Now, if the server doesn't send a protocol version (protocols < 25), we set m_proto_ver to some value < 25 and > 0.
This commit is contained in:
parent
a93838707a
commit
d92d376148
3 changed files with 16 additions and 6 deletions
|
@ -229,6 +229,7 @@ Client::Client(
|
|||
m_con(PROTOCOL_ID, 512, CONNECTION_TIMEOUT, ipv6, this),
|
||||
m_device(device),
|
||||
m_server_ser_ver(SER_FMT_VER_INVALID),
|
||||
m_proto_ver(0),
|
||||
m_playeritem(0),
|
||||
m_inventory_updated(false),
|
||||
m_inventory_from_server(NULL),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue