Cut music on objection if config is enabled for it (does not transmit networked message yet)

This commit is contained in:
Crystalwarrior 2019-09-13 11:03:23 +03:00
parent 8a5bc8632e
commit ba41b070a2

View File

@ -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);