Clanged changes

This commit is contained in:
cents 2020-05-23 10:44:36 -07:00
parent c83fd9f732
commit 8ea01d4c31
2 changed files with 38 additions and 38 deletions

View File

@ -2170,8 +2170,7 @@ void Courtroom::handle_chatmessage_3()
else
first_message_sent = true;
QString char_name = char_list.at(m_chatmessage[CHAR_ID].toInt()).name;
ui_ic_chatlog->textCursor().insertHtml("<b>" + char_name +
": </b>");
ui_ic_chatlog->textCursor().insertHtml("<b>" + char_name + ": </b>");
}
else {
if (first_message_sent && log_goes_downwards)
@ -2509,9 +2508,10 @@ QString Courtroom::filter_ic_text(QString p_text, bool skip_filter,
* \param p_text The text to be appended
* \param p_name The name of the character/entity who sent said text
* \param is_songchange Whether we are appending a song entry
* \param force_filter If we are sending plain text and we want to force the filtering regardless of its status (e.g chat entry, song change etc)
* \param skip_filter If we are sending appending text such as html so we skip the html filter
* \param chat_color The color of the message sent
* \param force_filter If we are sending plain text and we want to force the
* filtering regardless of its status (e.g chat entry, song change etc) \param
* skip_filter If we are sending appending text such as html so we skip the html
* filter \param chat_color The color of the message sent
*/
void Courtroom::append_ic_text(QString p_text, QString p_name,
@ -2832,7 +2832,9 @@ void Courtroom::chat_tick()
f_character = f_character.toHtmlEscaped();
if (punctuation_chars.contains(f_character)) {
msg_delay *= punctuation_modifier + 1; // Since we are handling a boolean, if its true its double (1 + 1) or false (1 + 0).
msg_delay *=
punctuation_modifier + 1; // Since we are handling a boolean, if its
// true its double (1 + 1) or false (1 + 0).
// ui_vp_message->insertPlainText(f_character);
}

View File

@ -482,16 +482,15 @@ void AOApplication::server_packet_received(AOPacket *p_packet)
int element_ahead = 0;
for (int n_element = 0; n_element < f_contents.size(); ++n_element) {
element_ahead = n_element + 1;
if (!musics_time && f_contents.at(n_element).startsWith("==") && (
f_contents.at(element_ahead).endsWith(".wav") ||
if (!musics_time && f_contents.at(n_element).startsWith("==") &&
(f_contents.at(element_ahead).endsWith(".wav") ||
f_contents.at(element_ahead).endsWith(".mp3") ||
f_contents.at(element_ahead).endsWith(".mp4") ||
f_contents.at(element_ahead).endsWith(".ogg") ||
f_contents.at(element_ahead).endsWith(".opus"))) {
legacy_system = true;
}
if(!legacy_system) {
if (!legacy_system) {
if (!musics_time && (f_contents.at(n_element).startsWith("==") ||
f_contents.at(element_ahead).endsWith(".wav") ||
f_contents.at(element_ahead).endsWith(".mp3") ||
@ -501,7 +500,7 @@ void AOApplication::server_packet_received(AOPacket *p_packet)
musics_time = true;
}
}
else{
else {
if (!musics_time && (f_contents.at(n_element).startsWith("==") ||
f_contents.at(n_element).endsWith(".wav") ||
f_contents.at(n_element).endsWith(".mp3") ||
@ -510,7 +509,6 @@ void AOApplication::server_packet_received(AOPacket *p_packet)
f_contents.at(n_element).endsWith(".opus"))) {
musics_time = true;
}
}
// Not everything needs to have a thread.