From da002085abf3deab2c51cbabcfb910e78c81656e Mon Sep 17 00:00:00 2001 From: scatterflower Date: Mon, 17 Aug 2020 07:05:37 -0500 Subject: [PATCH 1/2] Do not update colors in log for each IC message --- src/courtroom.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/courtroom.cpp b/src/courtroom.cpp index be7588a..978cc04 100644 --- a/src/courtroom.cpp +++ b/src/courtroom.cpp @@ -1885,14 +1885,6 @@ void Courtroom::handle_chatmessage(QStringList *p_contents) QString f_char = m_chatmessage[CHAR_NAME]; QString f_custom_theme = ao_app->get_char_shouts(f_char); - // Load the colors in case it's using a custom chatbox with custom colors. - // Or reload the default ones in case it's not using custom colors - color_rgb_list.clear(); - for (int c = 0; c < max_colors; ++c) { - QColor color = ao_app->get_chat_color("c" + QString::number(c), f_char); - color_rgb_list.append(color); - } - append_ic_text(m_chatmessage[MESSAGE], f_displayname, "", m_chatmessage[TEXT_COLOR].toInt()); From 4ada75a3bd0cf57007458b2af6f44c76ac33e575 Mon Sep 17 00:00:00 2001 From: scatterflower Date: Mon, 17 Aug 2020 13:06:35 -0500 Subject: [PATCH 2/2] fix statement after break; from case --- src/courtroom.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/courtroom.cpp b/src/courtroom.cpp index 978cc04..cc35a7b 100644 --- a/src/courtroom.cpp +++ b/src/courtroom.cpp @@ -1919,8 +1919,8 @@ void Courtroom::handle_chatmessage(QStringList *p_contents) shout_stay_time); objection_player->play("custom", f_char, f_custom_theme); } - break; m_chatmessage[EMOTE_MOD] = 1; + break; } sfx_player->clear(); // Objection played! Cut all sfx. }