aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorin1tiate <32779090+in1tiate@users.noreply.github.com>2020-12-28 00:49:50 -0600
committerGitHub <noreply@github.com>2020-12-28 00:49:50 -0600
commitb159ca35df0fbfbce276c9fbaf011101bc79457b (patch)
tree36026a0ecc2b46339a7358e7f3fc41cf9f731da8
parent8ed373597b1a006078909c9bf34f00a4c86dc464 (diff)
Fix sounds and blips being muted forever on changing character (#345)
Re-fix of #277.
-rw-r--r--src/courtroom.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/courtroom.cpp b/src/courtroom.cpp
index baa66315..9b3b2062 100644
--- a/src/courtroom.cpp
+++ b/src/courtroom.cpp
@@ -1333,6 +1333,9 @@ void Courtroom::update_character(int p_cid)
ui_char_select_background->hide();
ui_ic_chat_message->setEnabled(m_cid != -1);
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()