Skip to content

Commit

Permalink
Set correct partial game status.
Browse files Browse the repository at this point in the history
  • Loading branch information
dillof committed Nov 26, 2024
1 parent 89da350 commit 4ab1e89
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion src/check_game_files.cc
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,21 @@ void update_game_status(const Game *game, Result *result) {
result->game = GS_FIXABLE;
}
else {
result->game = GS_PARTIAL;
if (all_missing_mia) {
if (has_mia) {
result->game = GS_PARTIAL_BEST_MIA;
}
else {
result->game = GS_PARTIAL_BEST;
}
}
else {
if (has_mia) {
result->game = GS_PARTIAL_MIA;
}
else {
result->game = GS_PARTIAL;
}
}
}
}

0 comments on commit 4ab1e89

Please sign in to comment.