mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-16 18:01:40 +00:00
Require 'basic_debug' priv to view gameplay-relevant debug info, require 'debug' priv to view wireframe (#9315)
Fixes #7245.
This commit is contained in:
parent
51bf4a6e26
commit
63fc728a84
8 changed files with 85 additions and 20 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue