Skip to content

Commit ee918a4

Browse files
Fix edge cases where screenshake uses wrong chatbox coordinates due to it being initialized later than needed.
1 parent d6ebc3e commit ee918a4

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/courtroom.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2360,6 +2360,9 @@ void Courtroom::objection_done() { handle_ic_message(); }
23602360

23612361
void Courtroom::handle_ic_message()
23622362
{
2363+
// Update the chatbox information
2364+
initialize_chatbox();
2365+
23632366
// Display our own character
23642367
display_character();
23652368

@@ -2377,9 +2380,6 @@ void Courtroom::handle_ic_message()
23772380
// Parse the emote_mod part of the chat message
23782381
handle_emote_mod(m_chatmessage[EMOTE_MOD].toInt(), m_chatmessage[IMMEDIATE].toInt() == 1);
23792382

2380-
// Update the chatbox information
2381-
initialize_chatbox();
2382-
23832383
// if we have instant objections disabled, and queue is not empty, check if next message after this is an objection.
23842384
if (!ao_app->is_instant_objection_enabled() && chatmessage_queue.size() > 0)
23852385
{

0 commit comments

Comments
 (0)