Merge pull request #450 from AttorneyOnline/fix/447

Fix additive text duplication
This commit is contained in:
oldmud0 2021-02-05 00:52:02 -06:00 committed by GitHub
commit ce77e50f75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3315,9 +3315,6 @@ void Courtroom::chat_tick()
}
ui_vp_chat_arrow->transform_mode = ao_app->get_misc_scaling(f_custom_theme);
ui_vp_chat_arrow->load_image("chat_arrow", f_custom_theme); // Chat stopped being processed, indicate that.
additive_previous =
additive_previous +
filter_ic_text(f_message, true, -1, m_chatmessage[TEXT_COLOR].toInt());
QString f_message_filtered = filter_ic_text(f_message, true, -1, m_chatmessage[TEXT_COLOR].toInt());
for (int c = 0; c < max_colors; ++c) {
additive_previous = additive_previous.replace("$c" + QString::number(c), char_color_rgb_list.at(c).name(QColor::HexRgb));