Changing setting check for bridge usage from gSavedSettings to llCachedControl

meow-7.2.2
Liny 2011-10-11 10:00:10 -07:00
parent c4c9d0f446
commit ea3bf4e4a7
1 changed files with 6 additions and 3 deletions

View File

@ -3800,10 +3800,13 @@ void process_chat_from_simulator(LLMessageSystem *msg, void **user_data)
case CHAT_TYPE_OWNER:
//-TT Client LSL Bridge
//llinfos << "CHAT_TYPE_OWNER: " << mesg << llendl; // LO - Removing what looks to be an old debug line, but would cause all llOwnerSay messages to be logged to the log file if left in.
if (gSavedSettings.getBOOL("UseLSLBridge"))
{
if(FSLSLBridge::instance().lslToViewer(mesg, from_id, owner_id))
return;
static LLCachedControl<bool> sUseLSLBridge(gSavedSettings, "UseLSLBridge");
if (sUseLSLBridge)
{
if(FSLSLBridge::instance().lslToViewer(mesg, from_id, owner_id))
return;
}
}
//-TT
// [RLVa:KB] - Checked: 2010-02-XX (RLVa-1.2.0a) | Modified: RLVa-1.1.0f