From b0fa47eb1c6e34e66bd72eea0e524c7fa3260604 Mon Sep 17 00:00:00 2001 From: Maxim Ivanov Date: Mon, 7 Nov 2022 13:43:01 +0000 Subject: [PATCH] fix(matchmaker): update total count after rounding to CountMultiple After roundToCountMultiple successfully removes some tickets to satisfy CountMultiple we need to update total number of players in the candidate match (found combo + current index) Previously final Min/Max/Multiple count check for each selected ticket (MatchmakerIndex) was done against stale total count. --- server/matchmaker.go | 1 + 1 file changed, 1 insertion(+) diff --git a/server/matchmaker.go b/server/matchmaker.go index 3674edd63..badde09ad 100644 --- a/server/matchmaker.go +++ b/server/matchmaker.go @@ -456,6 +456,7 @@ func (m *LocalMatchmaker) Process() { if !ok { continue } + l = sumCount(foundCombo) + index.Count } // Check that ALL of these conditions are true for ALL matched entries: -- GitLab