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
|
@ -595,8 +595,14 @@ private:
|
|||
Mapper *m_mapper;
|
||||
// Server serialization version
|
||||
u8 m_server_ser_ver;
|
||||
|
||||
// Used version of the protocol with server
|
||||
// Values smaller than 25 only mean they are smaller than 25,
|
||||
// and aren't accurate. We simply just don't know, because
|
||||
// the server didn't send the version back then.
|
||||
// If 0, server init hasn't been received yet.
|
||||
u8 m_proto_ver;
|
||||
|
||||
u16 m_playeritem;
|
||||
bool m_inventory_updated;
|
||||
Inventory *m_inventory_from_server;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue