diff options
author | Wuzzy <wuzzy2@mail.ru> | 2021-06-24 18:21:19 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-24 21:21:19 +0300 |
commit | 63fc728a84a5ba97240233ad1c5d94f1ade2deb1 (patch) | |
tree | 61829a140b98519fbfa7920d79495e0c0692ad1b /src/network | |
parent | 51bf4a6e26f9eca461ae88181b06b517afc4d656 (diff) | |
download | minetest-63fc728a84a5ba97240233ad1c5d94f1ade2deb1.tar.gz minetest-63fc728a84a5ba97240233ad1c5d94f1ade2deb1.tar.bz2 minetest-63fc728a84a5ba97240233ad1c5d94f1ade2deb1.zip |
Require 'basic_debug' priv to view gameplay-relevant debug info, require 'debug' priv to view wireframe (#9315)
Fixes #7245.
Diffstat (limited to 'src/network')
-rw-r--r-- | src/network/clientpackethandler.cpp | 5 | ||||
-rw-r--r-- | src/network/networkprotocol.h | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/src/network/clientpackethandler.cpp b/src/network/clientpackethandler.cpp index c8a160732..b86bdac18 100644 --- a/src/network/clientpackethandler.cpp +++ b/src/network/clientpackethandler.cpp @@ -896,6 +896,11 @@ void Client::handleCommand_Privileges(NetworkPacket* pkt) m_privileges.insert(priv); infostream << priv << " "; } + + // Enable basic_debug on server versions before it was added + if (m_proto_ver < 40) + m_privileges.insert("basic_debug"); + infostream << std::endl; } diff --git a/src/network/networkprotocol.h b/src/network/networkprotocol.h index 838bf0b2c..b647aab1a 100644 --- a/src/network/networkprotocol.h +++ b/src/network/networkprotocol.h @@ -205,9 +205,11 @@ with this program; if not, write to the Free Software Foundation, Inc., Updated set_sky packet Adds new sun, moon and stars packets Minimap modes + PROTOCOL VERSION 40: + Added 'basic_debug' privilege */ -#define LATEST_PROTOCOL_VERSION 39 +#define LATEST_PROTOCOL_VERSION 40 #define LATEST_PROTOCOL_VERSION_STRING TOSTRING(LATEST_PROTOCOL_VERSION) // Server's supported network protocol range |