1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +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:
Wuzzy 2021-06-24 18:21:19 +00:00 committed by GitHub
parent 51bf4a6e26
commit 63fc728a84
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 85 additions and 20 deletions

View file

@ -870,6 +870,11 @@ void Hud::toggleBlockBounds()
}
}
void Hud::disableBlockBounds()
{
m_block_bounds_mode = BLOCK_BOUNDS_OFF;
}
void Hud::drawBlockBounds()
{
if (m_block_bounds_mode == BLOCK_BOUNDS_OFF) {