Disable needless checking for destination guide and sidepanel hint each frame

Ansariel 2012-03-03 11:09:10 +01:00
parent 4ffb92bc32
commit f82e9aab60
1 changed files with 13 additions and 11 deletions

View File

@ -2883,17 +2883,19 @@ void LLViewerWindow::updateUI()
static std::string last_handle_msg;
if (gLoggedInTime.getStarted())
{
if (gLoggedInTime.getElapsedTimeF32() > gSavedSettings.getF32("DestinationGuideHintTimeout"))
{
LLFirstUse::notUsingDestinationGuide();
}
if (gLoggedInTime.getElapsedTimeF32() > gSavedSettings.getF32("SidePanelHintTimeout"))
{
LLFirstUse::notUsingSidePanel();
}
}
// <FS:Ansariel> We don't show the hints anyway, so needless to check here
//if (gLoggedInTime.getStarted())
//{
// if (gLoggedInTime.getElapsedTimeF32() > gSavedSettings.getF32("DestinationGuideHintTimeout"))
// {
// LLFirstUse::notUsingDestinationGuide();
// }
// if (gLoggedInTime.getElapsedTimeF32() > gSavedSettings.getF32("SidePanelHintTimeout"))
// {
// LLFirstUse::notUsingSidePanel();
// }
//}
// </FS:Ansariel>
LLConsole::updateClass();