From 79d64e6153b4f8b26c32f81e6970021cac214f03 Mon Sep 17 00:00:00 2001 From: Salanto Date: Fri, 12 Mar 2021 22:12:33 +0100 Subject: [PATCH] Send music update to area instead of a single client --- src/commands.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/commands.cpp b/src/commands.cpp index 8b87a42..45301a0 100644 --- a/src/commands.cpp +++ b/src/commands.cpp @@ -727,7 +727,8 @@ void AOClient::cmdPlay(int argc, QStringList argv) QString song = argv.join(" "); area->current_music = song; area->music_played_by = showname; - sendPacket("MC", {song, QString::number(server->getCharID(current_char)), showname, "1", "0"}); + AOPacket music_change("MC", {song, QString::number(server->getCharID(current_char)), showname, "1", "0"}); + server->broadcast(music_change, current_area); } void AOClient::cmdAreaKick(int argc, QStringList argv)