aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCrystalwarrior <varsash@gmail.com>2019-09-13 11:03:23 +0300
committerCrystalwarrior <varsash@gmail.com>2019-09-13 11:03:23 +0300
commitba41b070a208af9393abebd721fb1488fbedee57 (patch)
tree9b6a93edb43373d4361ec2339f022b16656eed58
parent8a5bc8632eb69db751ded4d6034e5648208b9212 (diff)
Cut music on objection if config is enabled for it (does not transmit networked message yet)
-rw-r--r--src/courtroom.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/courtroom.cpp b/src/courtroom.cpp
index 6e01ea75..276b0fac 100644
--- a/src/courtroom.cpp
+++ b/src/courtroom.cpp
@@ -1336,6 +1336,8 @@ void Courtroom::handle_chatmessage(QStringList *p_contents)
case 2:
ui_vp_objection->play("objection", f_char, f_custom_theme, 724);
objection_player->play("objection.wav", f_char, f_custom_theme);
+ if (ao_app->get_objectmusic())
+ music_player->play(""); //I'd prefer if this sent a networked message instead so everyone would have their music cut when you object.
break;
case 3:
ui_vp_objection->play("takethat", f_char, f_custom_theme, 724);