diff options
| author | oldmud0 <oldmud0@users.noreply.github.com> | 2021-12-22 00:59:48 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-22 00:59:48 -0600 |
| commit | d9e69cca06ef98e6a0ea9bc22a990e735ee5a65f (patch) | |
| tree | 0e4f94be3333af91051661e859b0093c905fb75e /src/courtroom.cpp | |
| parent | 641cca65044e41e49e5a871f0d60138b61c1bab3 (diff) | |
| parent | 6bbb45a6d14fa8ff18cf4b145a8b2bb76ca6bdc2 (diff) | |
Merge pull request #578 from AttorneyOnline/fix-desk-mods-again
Handle expanded desk modifiers on chat ticking start rather than on preanim complete signal
Diffstat (limited to 'src/courtroom.cpp')
| -rw-r--r-- | src/courtroom.cpp | 29 |
1 files changed, 16 insertions, 13 deletions
diff --git a/src/courtroom.cpp b/src/courtroom.cpp index e00d2008..8c59f1d2 100644 --- a/src/courtroom.cpp +++ b/src/courtroom.cpp @@ -3290,6 +3290,22 @@ void Courtroom::preanim_done() if (anim_state != 1 && anim_state != 4 && anim_state != 5) return; anim_state = 1; + + handle_ic_speaking(); +} + +void Courtroom::start_chat_ticking() +{ + text_delay_timer->stop(); + // we need to ensure that the text isn't already ticking because this function + // can be called by two logic paths + if (text_state != 0) + return; + + // Display the evidence + display_evidence_image(); + + // handle expanded desk mods switch(m_chatmessage[DESK_MOD].toInt()) { case 4: set_self_offset(m_chatmessage[SELF_OFFSET]); @@ -3308,19 +3324,6 @@ void Courtroom::preanim_done() set_scene(m_chatmessage[DESK_MOD], m_chatmessage[SIDE]); break; } - handle_ic_speaking(); -} - -void Courtroom::start_chat_ticking() -{ - text_delay_timer->stop(); - // we need to ensure that the text isn't already ticking because this function - // can be called by two logic paths - if (text_state != 0) - return; - - // Display the evidence - display_evidence_image(); if (m_chatmessage[EFFECTS] != "") { QStringList fx_list = m_chatmessage[EFFECTS].split("|"); |
