chupenme los huevos
Some checks are pending
CI / build-windows (push) Blocked by required conditions
CI / build-linux (push) Blocked by required conditions
CI / check-clang-format (push) Waiting to run

This commit is contained in:
simio 2025-03-30 07:38:15 -03:00
parent 69f0507e0b
commit ee63a16c22

View File

@ -82,7 +82,8 @@ AOPacket *PacketMS::validateIcPacket(AOClient &client) const
<< "3" << "3"
<< "4" << "4"
<< "5"; << "5";
QString l_incoming_deskmod = client.hide_desk ? "0" : l_incoming_args[0].toString(); QString l_incoming_deskmod = l_incoming_args[0].toString();
client.hide_desk = l_incoming_deskmod == "0" || client.hide_desk;
if (allowed_desk_mods.contains(l_incoming_deskmod)) { if (allowed_desk_mods.contains(l_incoming_deskmod)) {
// **WARNING : THIS IS A HACK!** // **WARNING : THIS IS A HACK!**
// A proper solution would be to deprecate chat as an argument on the clientside // A proper solution would be to deprecate chat as an argument on the clientside