From a640def15718fd4eae5a4dd4364eaa559358e973 Mon Sep 17 00:00:00 2001 From: windrammer <31085911+likeawindrammer@users.noreply.github.com> Date: Wed, 29 Jul 2020 11:15:30 -0600 Subject: [PATCH] Fix screenshake button shunting character to origin (#215) * Fix #193 By making sure handle_chatmessage_3 calls start_chat_ticking and thus do_screenshake only after either play_idle or play_talking is called * Move call to start_chat_ticking to the end of handle_chatmessage_3 --- src/courtroom.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/courtroom.cpp b/src/courtroom.cpp index 109c347..5d38f8b 100644 --- a/src/courtroom.cpp +++ b/src/courtroom.cpp @@ -2154,8 +2154,6 @@ void Courtroom::play_char_sfx(QString sfx_name) void Courtroom::handle_chatmessage_3() { - start_chat_ticking(); - int f_evi_id = m_chatmessage[EVIDENCE_ID].toInt(); QString f_side = m_chatmessage[SIDE]; @@ -2235,6 +2233,8 @@ void Courtroom::handle_chatmessage_3() break; } } + + start_chat_ticking(); } QString Courtroom::filter_ic_text(QString p_text, bool html, int target_pos,