Merge pull request #31 from Salanto/Fix#30

Send music update to area instead of a single client
This commit is contained in:
scatterflower 2021-03-12 15:13:10 -06:00 committed by GitHub
commit 2f1fff60a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)