From 5e83c37bcb6b89b3005ba56260e10e11a7b62595 Mon Sep 17 00:00:00 2001 From: scatterflower Date: Mon, 5 Oct 2020 16:14:58 -0500 Subject: [PATCH] add music looping --- src/packets.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/packets.cpp b/src/packets.cpp index cbad1d4..867c96e 100644 --- a/src/packets.cpp +++ b/src/packets.cpp @@ -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; } }