Update packets.cpp

Shouldn't send it if its garbage data
This commit is contained in:
Salanto 2021-05-05 14:33:57 +02:00
parent ea741f07a6
commit 9b27774fd3

View File

@ -64,8 +64,10 @@ void AOClient::pktSoftwareId(AreaData* area, int argc, QStringList argv, AOPacke
sendPacket("PN", {QString::number(server->player_count), server->max_players});
sendPacket("FL", feature_list);
if (server->asset_url.isValid()) {
QByteArray asset_url = server->asset_url.toEncoded(QUrl::EncodeSpaces);
sendPacket("ASS", {asset_url});
}
}
void AOClient::pktBeginLoad(AreaData* area, int argc, QStringList argv, AOPacket packet)