mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2025-12-29 22:21:37 -08:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user