Skip to content

Commit 59fd114

Browse files
authored
fix: mates now also count to the resign tracker (#238)
1 parent ed21c17 commit 59fd114

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/matchmaking/match/match.hpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ class ResignTracker {
4747
}
4848

4949
void update(const int score, ScoreType score_type) noexcept {
50-
if (std::abs(score) >= resign_score && score_type == ScoreType::CP) {
50+
if ((std::abs(score) >= resign_score && score_type == ScoreType::CP) ||
51+
score_type == ScoreType::MATE) {
5152
resign_moves++;
5253
} else {
5354
resign_moves = 0;

0 commit comments

Comments
 (0)