Fix edge cases where screenshake uses wrong chatbox coordinates due to it being initialized later than needed.

This commit is contained in:
Crystalwarrior 2021-02-21 12:03:56 +03:00
parent d6ebc3e80b
commit ee918a4f81

View File

@ -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)
{