mirror of
https://github.com/minetest/minetest.git
synced 2024-11-27 01:53:45 +01:00
Document keymap_toggle_block_bounds, remove unimplemented BLOCK_BOUNDS_MAX (#14722)
This commit is contained in:
parent
833bb542fc
commit
508b5ccc63
@ -2525,6 +2525,9 @@ keymap_toggle_debug (Debug info toggle key) key KEY_F5
|
||||
# Key for toggling the display of the profiler. Used for development.
|
||||
keymap_toggle_profiler (Profiler toggle key) key KEY_F6
|
||||
|
||||
# Key for toggling the display of mapblock boundaries.
|
||||
keymap_toggle_block_bounds (Block bounds toggle key) key
|
||||
|
||||
# Key for switching between first- and third-person camera.
|
||||
keymap_camera_mode (Toggle camera mode key) key KEY_KEY_C
|
||||
|
||||
|
@ -2427,9 +2427,6 @@ void Game::toggleBlockBounds()
|
||||
case Hud::BLOCK_BOUNDS_NEAR:
|
||||
m_game_ui->showTranslatedStatusText("Block bounds shown for nearby blocks");
|
||||
break;
|
||||
case Hud::BLOCK_BOUNDS_MAX:
|
||||
m_game_ui->showTranslatedStatusText("Block bounds shown for all blocks");
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
@ -913,7 +913,7 @@ enum Hud::BlockBoundsMode Hud::toggleBlockBounds()
|
||||
{
|
||||
m_block_bounds_mode = static_cast<BlockBoundsMode>(m_block_bounds_mode + 1);
|
||||
|
||||
if (m_block_bounds_mode >= BLOCK_BOUNDS_MAX) {
|
||||
if (m_block_bounds_mode > BLOCK_BOUNDS_NEAR) {
|
||||
m_block_bounds_mode = BLOCK_BOUNDS_OFF;
|
||||
}
|
||||
return m_block_bounds_mode;
|
||||
|
@ -40,7 +40,6 @@ public:
|
||||
BLOCK_BOUNDS_OFF,
|
||||
BLOCK_BOUNDS_CURRENT,
|
||||
BLOCK_BOUNDS_NEAR,
|
||||
BLOCK_BOUNDS_MAX
|
||||
} m_block_bounds_mode = BLOCK_BOUNDS_OFF;
|
||||
|
||||
video::SColor crosshair_argb;
|
||||
|
Loading…
Reference in New Issue
Block a user