From f4cb86397fbe6af84376a3c2caaa0353579fa96e Mon Sep 17 00:00:00 2001 From: AconiteGodOfSWG Date: Mon, 15 Feb 2021 15:55:22 -0500 Subject: [PATCH] Enable Warning UI Window & Obj Attribute Debug Dump --- .../clientGame/src/shared/core/ObjectAttributeManager.cpp | 5 ++--- .../clientUserInterface/src/shared/core/CuiManager.cpp | 2 -- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/engine/client/library/clientGame/src/shared/core/ObjectAttributeManager.cpp b/src/engine/client/library/clientGame/src/shared/core/ObjectAttributeManager.cpp index 70049deff..39f25f25f 100644 --- a/src/engine/client/library/clientGame/src/shared/core/ObjectAttributeManager.cpp +++ b/src/engine/client/library/clientGame/src/shared/core/ObjectAttributeManager.cpp @@ -819,8 +819,8 @@ bool ObjectAttributeManager::formatDescriptionIfNewer (const NetworkId & id, Uni if (!formatAttributesIfNewer(id, attribs, minimalAttribs, frame, tooltips)) return false; -#if PRODUCTION == 0 - if (obj && CuiPreferences::getDebugExamine ()) + + if (obj && CuiPreferences::getDebugExamine() && Game::getPlayerObject()->isAdmin()) { static Unicode::String debugInfo; debugInfo.clear (); @@ -828,7 +828,6 @@ bool ObjectAttributeManager::formatDescriptionIfNewer (const NetworkId & id, Uni debugInfo.append (1, '\n'); attribs = debugInfo + attribs; } -#endif if (obj) { diff --git a/src/engine/client/library/clientUserInterface/src/shared/core/CuiManager.cpp b/src/engine/client/library/clientUserInterface/src/shared/core/CuiManager.cpp index ba34b5072..a3cd9cea2 100644 --- a/src/engine/client/library/clientUserInterface/src/shared/core/CuiManager.cpp +++ b/src/engine/client/library/clientUserInterface/src/shared/core/CuiManager.cpp @@ -451,7 +451,6 @@ void CuiManager::install () uiManager->SetRootPage (rootPage); //-- initialize warning display -#if PRODUCTION == 0 bool const displayWarnings = ConfigFile::getKeyBool("ClientUserInterface", "displayWarnings", false); if (displayWarnings) { @@ -466,7 +465,6 @@ void CuiManager::install () SetWarningCallback(globalWarningCallback); } } -#endif REPORT_LOG_PRINT (s_debugReportInstallVerbose, ("CuiManager::install CuiManagerManager::install\n"));