FIRE-8854: Set default access level to maximum if the sim doesn't set it at login. OpenSim fix.
parent
529a208d47
commit
953d99cded
|
|
@ -3601,6 +3601,11 @@ bool process_login_success_response(U32 &first_sim_size_x, U32 &first_sim_size_y
|
|||
{
|
||||
// agent_access can be 'A', 'M', and 'PG'.
|
||||
gAgent.setMaturity(text[0]);
|
||||
//<FS:TS> FIRE-8854: Set the preferred maturity here to the maximum
|
||||
// in case the sim doesn't send it at login, like OpenSim
|
||||
// doesn't. If it does, it'll get overridden below.
|
||||
U32 preferredMaturity = (U32)LLAgent::convertTextToMaturity(text[0]);
|
||||
gSavedSettings.setU32("PreferredMaturity", preferredMaturity);
|
||||
}
|
||||
|
||||
// this is the value of their preference setting for that content
|
||||
|
|
@ -3609,7 +3614,6 @@ bool process_login_success_response(U32 &first_sim_size_x, U32 &first_sim_size_y
|
|||
if (!text.empty())
|
||||
{
|
||||
U32 preferredMaturity = (U32)LLAgent::convertTextToMaturity(text[0]);
|
||||
|
||||
gSavedSettings.setU32("PreferredMaturity", preferredMaturity);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue