Fix a bug where user would be unable to speak if the BG changed when someone else was speaking
Make it so blip sounds are accessed in base/sounds/blips/* if such a path exists
This commit is contained in:
parent
886ec26e20
commit
34848c4eaf
@ -1028,7 +1028,14 @@ void Courtroom::set_background(QString p_background, bool display)
|
||||
ui_vp_message->hide();
|
||||
ui_vp_chatbox->hide();
|
||||
|
||||
//Stop the chat arrow from animating
|
||||
ui_vp_chat_arrow->stop();
|
||||
|
||||
text_state = 0;
|
||||
anim_state = 0;
|
||||
ui_vp_objection->stop();
|
||||
chat_tick_timer->stop();
|
||||
ui_vp_evidence_display->reset();
|
||||
set_scene(QString::number(ao_app->get_desk_mod(current_char, current_emote)), current_side);
|
||||
}
|
||||
}
|
||||
|
@ -634,8 +634,8 @@ QString AOApplication::get_gender(QString p_char)
|
||||
|
||||
if (!file_exists(get_sfx_suffix(get_sounds_path(f_result))))
|
||||
{
|
||||
if (file_exists(get_sfx_suffix(get_sounds_path("blips/" + f_result))))
|
||||
return "blips/" + f_result; //Return the cool kids variant
|
||||
if (file_exists(get_sfx_suffix(get_sounds_path("../blips/" + f_result))))
|
||||
return "../blips/" + f_result; //Return the cool kids variant
|
||||
|
||||
return "sfx-blip" + f_result; //Return legacy variant
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user