forked from oerkki/voxelands
some protocol version tweaks
This commit is contained in:
parent
e44d39d824
commit
1418225b48
|
@ -25,6 +25,9 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
#define PROTOCOL_VERSION 4
|
||||
/* the last protocol version used by 0.3.x minetest-c55 clients */
|
||||
#define PROTOCOL_DOTTHREE 3
|
||||
/* this is the oldest protocol that we will allow to connect
|
||||
* even with strict_protocol_version_checking = false */
|
||||
#define PROTOCOL_OLDEST 3
|
||||
|
||||
#define PROTOCOL_ID 0x4f457403
|
||||
|
||||
|
|
|
@ -1906,8 +1906,7 @@ void Server::ProcessData(u8 *data, u32 datasize, u16 peer_id)
|
|||
|
||||
getClient(peer_id)->net_proto_version = net_proto_version;
|
||||
|
||||
if(net_proto_version == 0)
|
||||
{
|
||||
if (net_proto_version < PROTOCOL_OLDEST) {
|
||||
SendAccessDenied(m_con, peer_id,
|
||||
L"Your client is too old. Please upgrade.");
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue