diff options
| author | Crystalwarrior <varsash@gmail.com> | 2021-02-21 12:03:56 +0300 |
|---|---|---|
| committer | Crystalwarrior <varsash@gmail.com> | 2021-02-21 12:03:56 +0300 |
| commit | ee918a4f818326cba66ec07bf4be57c4d67c08da (patch) | |
| tree | a8eb988fe4623f64c8fb165187e452730357f5b2 | |
| parent | d6ebc3e80b9abc29fef70f6ef18434ea877f4b66 (diff) | |
Fix edge cases where screenshake uses wrong chatbox coordinates due to it being initialized later than needed.
| -rw-r--r-- | src/courtroom.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/courtroom.cpp b/src/courtroom.cpp index 22491f28..9c9c6adb 100644 --- a/src/courtroom.cpp +++ b/src/courtroom.cpp @@ -2360,6 +2360,9 @@ void Courtroom::objection_done() { handle_ic_message(); } void Courtroom::handle_ic_message() { + // Update the chatbox information + initialize_chatbox(); + // Display our own character display_character(); @@ -2377,9 +2380,6 @@ void Courtroom::handle_ic_message() // Parse the emote_mod part of the chat message handle_emote_mod(m_chatmessage[EMOTE_MOD].toInt(), m_chatmessage[IMMEDIATE].toInt() == 1); - // Update the chatbox information - initialize_chatbox(); - // if we have instant objections disabled, and queue is not empty, check if next message after this is an objection. if (!ao_app->is_instant_objection_enabled() && chatmessage_queue.size() > 0) { |
