add music looping

This commit is contained in:
scatterflower 2020-10-05 16:14:58 -05:00
parent eb5f0120c6
commit 5e83c37bcb

View File

@ -185,8 +185,9 @@ void AOClient::pktChangeMusic(AreaData* area, int argc, QStringList argv, AOPack
for (QString song : server->music_list) {
if (song == argument) {
// If we have a song, retransmit as-is
server->broadcast(packet, current_area);
// We have a song here
AOPacket music_change("MC", {song, argv[1], argv[2], "1", "0", argv[3]});
server->broadcast(music_change, current_area);
return;
}
}