don't reset pt if there is nothing to reset (#4438)

* don't reset pt if there is nothing to reset

when the client resets the pt of a card it intentionally does not
include cards that already have the correct pt, this can lead to the
client sending an empty command to the server, which will be rejected

* clangify
This commit is contained in:
ebbit1q
2021-10-24 02:04:52 +02:00
committed by GitHub
parent b1ef8220ee
commit bbbf3e2a65

View File

@@ -2984,7 +2984,9 @@ void Player::actResetPT()
}
}
game->sendGameCommand(prepareGameCommand(commandList), playerid);
if (!commandList.empty()) {
game->sendGameCommand(prepareGameCommand(commandList), playerid);
}
}
QVariantList Player::parsePT(const QString &pt)