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/client/hud.cpp | |
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/client/hud.cpp')
-rw-r--r-- | src/client/hud.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/client/hud.cpp b/src/client/hud.cpp index 0bfdd5af0..fbfc886d2 100644 --- a/src/client/hud.cpp +++ b/src/client/hud.cpp @@ -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) { |