handle expanded desk mods on chat ticking start

This commit is contained in:
in1tiate 2021-08-01 11:13:52 -05:00
parent 579456fbd7
commit 6bbb45a6d1

View File

@ -3284,6 +3284,22 @@ void Courtroom::preanim_done()
if (anim_state != 1 && anim_state != 4)
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]);
@ -3302,19 +3318,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("|");