summaryrefslogtreecommitdiff
path: root/indra/newview/llagent.cpp
diff options
context:
space:
mode:
authorErik Kundiman <erik@megapahit.org>2026-09-22 14:47:19 +0800
committerErik Kundiman <erik@megapahit.org>2026-09-22 14:47:19 +0800
commit8557e9659ca5b71aabcbb21758be03a959c2098d (patch)
treee9c2cb659b646169e8d0c502b0ff873fec05ac02 /indra/newview/llagent.cpp
parent235a9d87ecf0447bd4aca3287548c715f1ada2ad (diff)
parentf767219366b8dbaeea95a22bd9953a587f473298 (diff)
Merge tag 'Second_Life_Release#f7672193-26.4' into 26.4
Diffstat (limited to 'indra/newview/llagent.cpp')
-rw-r--r--indra/newview/llagent.cpp12
1 files changed, 3 insertions, 9 deletions
diff --git a/indra/newview/llagent.cpp b/indra/newview/llagent.cpp
index a521170c61..b29d1706c4 100644
--- a/indra/newview/llagent.cpp
+++ b/indra/newview/llagent.cpp
@@ -583,6 +583,9 @@ void LLAgent::setFirstLogin(bool b)
{
setFeatureVersion(UI_FEATURE_VERSION, UI_FEATURE_FLAGS);
}
+
+ // Shared environment on teleport should only be enabled by default for new users;
+ gSavedSettings.setBOOL("SwitchToSharedEnvAfterTeleport", true);
}
}
@@ -1566,8 +1569,6 @@ void LLAgent::setAFK()
setControlFlags(AGENT_CONTROL_AWAY | AGENT_CONTROL_STOP);
gAwayTimer.start();
}
-
- LLAppViewer::instance()->setPermitOSHibernation(true);
}
//-----------------------------------------------------------------------------
@@ -1586,13 +1587,6 @@ void LLAgent::clearAFK()
sendAnimationRequest(ANIM_AGENT_AWAY, ANIM_REQUEST_STOP);
clearControlFlags(AGENT_CONTROL_AWAY);
}
-
- if (isAgentAvatarValid())
- {
- // Only set this if agent is inworld, login screen
- // shouldn't prevent hibernation.
- LLAppViewer::instance()->setPermitOSHibernation(false);
- }
}
//-----------------------------------------------------------------------------