mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Get rid of basic_debug
last minute
This isn't a revert but rather just disables the codepaths. also see #12011
This commit is contained in:
parent
b66477c29f
commit
5da204f5bc
5 changed files with 8 additions and 21 deletions
|
@ -1740,7 +1740,7 @@ void Game::processQueues()
|
|||
|
||||
void Game::updateDebugState()
|
||||
{
|
||||
bool has_basic_debug = client->checkPrivilege("basic_debug");
|
||||
const bool has_basic_debug = true;
|
||||
bool has_debug = client->checkPrivilege("debug");
|
||||
|
||||
if (m_game_ui->m_flags.show_basic_debug) {
|
||||
|
@ -2211,7 +2211,7 @@ void Game::toggleCinematic()
|
|||
|
||||
void Game::toggleBlockBounds()
|
||||
{
|
||||
if (client->checkPrivilege("basic_debug")) {
|
||||
if (true /* basic_debug */) {
|
||||
enum Hud::BlockBoundsMode newmode = hud->toggleBlockBounds();
|
||||
switch (newmode) {
|
||||
case Hud::BLOCK_BOUNDS_OFF:
|
||||
|
@ -2307,26 +2307,24 @@ void Game::toggleDebug()
|
|||
// The debug text can be in 2 modes: minimal and basic.
|
||||
// * Minimal: Only technical client info that not gameplay-relevant
|
||||
// * Basic: Info that might give gameplay advantage, e.g. pos, angle
|
||||
// Basic mode is used when player has "basic_debug" priv,
|
||||
// otherwise the Minimal mode is used.
|
||||
// Basic mode is always used.
|
||||
|
||||
const bool has_basic_debug = true;
|
||||
if (!m_game_ui->m_flags.show_minimal_debug) {
|
||||
m_game_ui->m_flags.show_minimal_debug = true;
|
||||
if (client->checkPrivilege("basic_debug")) {
|
||||
if (has_basic_debug)
|
||||
m_game_ui->m_flags.show_basic_debug = true;
|
||||
}
|
||||
m_game_ui->m_flags.show_profiler_graph = false;
|
||||
draw_control->show_wireframe = false;
|
||||
m_game_ui->showTranslatedStatusText("Debug info shown");
|
||||
} else if (!m_game_ui->m_flags.show_profiler_graph && !draw_control->show_wireframe) {
|
||||
if (client->checkPrivilege("basic_debug")) {
|
||||
if (has_basic_debug)
|
||||
m_game_ui->m_flags.show_basic_debug = true;
|
||||
}
|
||||
m_game_ui->m_flags.show_profiler_graph = true;
|
||||
m_game_ui->showTranslatedStatusText("Profiler graph shown");
|
||||
} else if (!draw_control->show_wireframe && client->checkPrivilege("debug")) {
|
||||
if (client->checkPrivilege("basic_debug")) {
|
||||
if (has_basic_debug)
|
||||
m_game_ui->m_flags.show_basic_debug = true;
|
||||
}
|
||||
m_game_ui->m_flags.show_profiler_graph = false;
|
||||
draw_control->show_wireframe = true;
|
||||
m_game_ui->showTranslatedStatusText("Wireframe shown");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue