Fix sounds and blips being muted forever on changing character (#345)

Re-fix of #277.
This commit is contained in:
in1tiate 2020-12-28 00:49:50 -06:00 committed by GitHub
parent 8ed373597b
commit b159ca35df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1333,6 +1333,9 @@ void Courtroom::update_character(int p_cid)
ui_char_select_background->hide(); ui_char_select_background->hide();
ui_ic_chat_message->setEnabled(m_cid != -1); ui_ic_chat_message->setEnabled(m_cid != -1);
ui_ic_chat_message->setFocus(); ui_ic_chat_message->setFocus();
// have to call these to make sure sfx and blips don't get accidentally muted forever when we change characters
sfx_player->set_volume(ui_sfx_slider->value());
blip_player->set_volume(ui_blip_slider->value());
} }
void Courtroom::enter_courtroom() void Courtroom::enter_courtroom()