Converted frequently occuring setting lookups to LLCachedControl
Added LLObjectList::getAvatar(LLUUID) for type-safe and quicker lookup Added F32 overload to LLSD because using F64 needlessly is silly. (And its lack of F32 overload caused issues with LLCachedControl<F32>)
This commit is contained in:
@@ -5867,7 +5867,9 @@ void LLVoiceClient::setVoiceEnabled(bool enabled)
|
||||
|
||||
bool LLVoiceClient::voiceEnabled()
|
||||
{
|
||||
return gSavedSettings.getBOOL("EnableVoiceChat") && !gSavedSettings.getBOOL("CmdLineDisableVoice");
|
||||
static LLCachedControl<bool> enable_voice_chat("EnableVoiceChat",false);
|
||||
static LLCachedControl<bool> cmd_line_disable_voice("CmdLineDisableVoice",false);
|
||||
return enable_voice_chat && !cmd_line_disable_voice;
|
||||
}
|
||||
|
||||
void LLVoiceClient::setLipSyncEnabled(BOOL enabled)
|
||||
|
||||
Reference in New Issue
Block a user