aboutsummaryrefslogtreecommitdiff
path: root/src/client/game.cpp
diff options
context:
space:
mode:
authorSeth Traverse <technotraverse@gmail.com>2021-04-20 10:23:31 -0700
committerGitHub <noreply@github.com>2021-04-20 19:23:31 +0200
commit16e5b39e1dbe503684effb11f4b87a641c3e43e6 (patch)
tree50d8ba701784ecb2d9d235bd97e20200cef1fb40 /src/client/game.cpp
parent0077982fb78a8ed39a90da03c0898d12583fed64 (diff)
downloadminetest-16e5b39e1dbe503684effb11f4b87a641c3e43e6.tar.gz
minetest-16e5b39e1dbe503684effb11f4b87a641c3e43e6.tar.bz2
minetest-16e5b39e1dbe503684effb11f4b87a641c3e43e6.zip
Add a key to toggle map block bounds (#11172)
It's often useful to know where the map block boundaries are for doing server admin work and the like. Adds three modes: single mapblock, range of 5, and disabled.
Diffstat (limited to 'src/client/game.cpp')
-rw-r--r--src/client/game.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/client/game.cpp b/src/client/game.cpp
index edb054032..b092b95e2 100644
--- a/src/client/game.cpp
+++ b/src/client/game.cpp
@@ -1932,6 +1932,8 @@ void Game::processKeyInput()
toggleCinematic();
} else if (wasKeyDown(KeyType::SCREENSHOT)) {
client->makeScreenshot();
+ } else if (wasKeyDown(KeyType::TOGGLE_BLOCK_BOUNDS)) {
+ hud->toggleBlockBounds();
} else if (wasKeyDown(KeyType::TOGGLE_HUD)) {
m_game_ui->toggleHud();
} else if (wasKeyDown(KeyType::MINIMAP)) {