diff options
| author | scatterflower <2956568+scatterflower@users.noreply.github.com> | 2020-08-17 13:11:21 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-17 13:11:21 -0500 |
| commit | 3c13a686a09271a30c51f842da96287e1082237e (patch) | |
| tree | 122e8cd3f8b0e50e9819be3f6c84c796173dde69 | |
| parent | c24ecc37e7325370ba38573a163f77f7bfa5b1bc (diff) | |
| parent | 4ada75a3bd0cf57007458b2af6f44c76ac33e575 (diff) | |
Merge pull request #255 from scatterflower/2.8
Do not update colors in log for each IC message
| -rw-r--r-- | src/courtroom.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/courtroom.cpp b/src/courtroom.cpp index be7588a5..cc35a7bd 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()); @@ -1927,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. } |
