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:
parent
b1ef8220ee
commit
bbbf3e2a65
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue