aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoroldmud0 <oldmud0@users.noreply.github.com>2021-01-11 12:02:07 -0600
committerGitHub <noreply@github.com>2021-01-11 12:02:07 -0600
commit189b092117a6ab32365fd74ea3b97b01d82b5a18 (patch)
tree431f2e8d240e4f54faa5c2b02191d693cba248bc
parent967f17a53f13e0542db9699baef7936eb955fea7 (diff)
parent90bd02a3e9cf55d292dba4f59230f210bffa224f (diff)
Merge pull request #396 from skyedeving/fix-spectator-mute
Set music and objection players to volume slider in update_character
-rw-r--r--src/courtroom.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/courtroom.cpp b/src/courtroom.cpp
index 0f807c33..3bbf82a4 100644
--- a/src/courtroom.cpp
+++ b/src/courtroom.cpp
@@ -1380,7 +1380,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
+ // have to call these to make sure music, sfx, and blips don't get accidentally muted forever when we change characters
+ music_player->set_volume(ui_music_slider->value(), 0);
+ objection_player->set_volume(ui_sfx_slider->value());
sfx_player->set_volume(ui_sfx_slider->value());
blip_player->set_volume(ui_blip_slider->value());
}