mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-05 01:23:24 -08:00
[Client] Skip decided pairings when resolving live tournament game
This commit is contained in:
parent
c433b165e5
commit
cf76d42791
1 changed files with 2 additions and 2 deletions
|
|
@ -185,7 +185,7 @@ void TournamentWidget::rebuildTables(const Event_TournamentState &state)
|
|||
QString statusStr;
|
||||
if (pairing.player2_id() == -1) {
|
||||
statusStr = tr("BYE");
|
||||
} else if (pairing.winner_id() != -1) {
|
||||
} else if (pairing.has_winner_id() || pairing.is_draw()) {
|
||||
statusStr = tr("Finished");
|
||||
} else {
|
||||
statusStr = tr("vs");
|
||||
|
|
@ -211,7 +211,7 @@ void TournamentWidget::resolveCurrentGameId(const Event_TournamentState &state)
|
|||
|
||||
for (int i = 0; i < state.pairings_size(); ++i) {
|
||||
const auto &pairing = state.pairings(i);
|
||||
if (pairing.game_id() == -1) {
|
||||
if (pairing.game_id() == -1 || pairing.has_winner_id() || pairing.is_draw()) {
|
||||
continue;
|
||||
}
|
||||
if (!hasOwnLivePairing && localPlayerId != -1 &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue