Make LLNearbyChatBarListener respect FSPlayChatAnimation setting

Ansariel 2013-02-22 12:26:58 +01:00
parent a3ff9494be
commit 4d6b76f677
1 changed files with 2 additions and 1 deletions

View File

@ -36,6 +36,7 @@
#include "llagent.h"
#include "llchat.h"
#include "llviewercontrol.h"
// <FS:Zi> Remove floating chat bar
@ -104,7 +105,7 @@ void LLNearbyChatBarListener::sendChat(LLSD const & chat_data) const
// Send it as if it was typed in
// <FS:Zi> Remove floating chat bar
// mChatbar.sendChatFromViewer(chat_to_send, type_o_chat, (BOOL)(channel == 0));
LLNearbyChat::instance().sendChatFromViewer(chat_to_send, type_o_chat, (BOOL)(channel == 0));
LLNearbyChat::instance().sendChatFromViewer(chat_to_send, type_o_chat, ((BOOL)(channel == 0)) && gSavedSettings.getBOOL("FSPlayChatAnimation"));
// <FS:Zi>
}