aboutsummaryrefslogtreecommitdiff
path: root/src/courtroom.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/courtroom.cpp')
-rw-r--r--src/courtroom.cpp18
1 files changed, 17 insertions, 1 deletions
diff --git a/src/courtroom.cpp b/src/courtroom.cpp
index 41712d2f..06f5aa06 100644
--- a/src/courtroom.cpp
+++ b/src/courtroom.cpp
@@ -2616,7 +2616,23 @@ void Courtroom::handle_song(QStringList *p_contents)
if (p_contents->length() > 2)
{
- str_show = p_contents->at(2);
+ if(p_contents->at(2) != "")
+ {
+ str_show = p_contents->at(2);
+ }
+ }
+ if (p_contents->length() > 3)
+ {
+ //I am really confused why "-1" is "loop this song" and why anything else passes as "don't loop"
+ //(if we even have this length) but alright
+ if(p_contents->at(3) != "-1")
+ {
+ music_player->set_looping(false);
+ }
+ else
+ {
+ music_player->set_looping(true);
+ }
}
if (!mute_map.value(n_char))