add music looping
This commit is contained in:
parent
eb5f0120c6
commit
5e83c37bcb
@ -185,8 +185,9 @@ void AOClient::pktChangeMusic(AreaData* area, int argc, QStringList argv, AOPack
|
|||||||
|
|
||||||
for (QString song : server->music_list) {
|
for (QString song : server->music_list) {
|
||||||
if (song == argument) {
|
if (song == argument) {
|
||||||
// If we have a song, retransmit as-is
|
// We have a song here
|
||||||
server->broadcast(packet, current_area);
|
AOPacket music_change("MC", {song, argv[1], argv[2], "1", "0", argv[3]});
|
||||||
|
server->broadcast(music_change, current_area);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user