mirror of
https://github.com/minetest/minetest.git
synced 2024-12-24 07:02:23 +01:00
Fix some debug info showing despite being disabled in the UI (#12205)
This commit is contained in:
parent
583257f093
commit
4558793caf
@ -3157,8 +3157,9 @@ void Game::processPlayerInteraction(f32 dtime, bool show_hud)
|
|||||||
handlePointingAtNode(pointed, selected_item, hand_item, dtime);
|
handlePointingAtNode(pointed, selected_item, hand_item, dtime);
|
||||||
} else if (pointed.type == POINTEDTHING_OBJECT) {
|
} else if (pointed.type == POINTEDTHING_OBJECT) {
|
||||||
v3f player_position = player->getPosition();
|
v3f player_position = player->getPosition();
|
||||||
|
bool basic_debug_allowed = client->checkPrivilege("debug") || (player->hud_flags & HUD_FLAG_BASIC_DEBUG);
|
||||||
handlePointingAtObject(pointed, tool_item, player_position,
|
handlePointingAtObject(pointed, tool_item, player_position,
|
||||||
client->checkPrivilege("debug") || (player->hud_flags & HUD_FLAG_BASIC_DEBUG));
|
m_game_ui->m_flags.show_basic_debug && basic_debug_allowed);
|
||||||
} else if (isKeyDown(KeyType::DIG)) {
|
} else if (isKeyDown(KeyType::DIG)) {
|
||||||
// When button is held down in air, show continuous animation
|
// When button is held down in air, show continuous animation
|
||||||
runData.punching = true;
|
runData.punching = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user