Skip to content

Commit

Permalink
Fix some debug info showing despite being disabled in the UI (minetes…
Browse files Browse the repository at this point in the history
  • Loading branch information
appgurueu committed Apr 21, 2022
1 parent 583257f commit 4558793
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/client/game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3157,8 +3157,9 @@ void Game::processPlayerInteraction(f32 dtime, bool show_hud)
handlePointingAtNode(pointed, selected_item, hand_item, dtime);
} else if (pointed.type == POINTEDTHING_OBJECT) {
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,
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)) {
// When button is held down in air, show continuous animation
runData.punching = true;
Expand Down

0 comments on commit 4558793

Please sign in to comment.