Skip to content

Conversation

ElectricalBoy
Copy link
Collaborator

Summary

fixes #6616

How did you test this change?

dev

local opponentRoundData = standingsOpponentData.rounds[roundNumber]
opponentRoundData.specialstatus = ''
opponentRoundData.match = match2
if (not match2.finished) and (#match2.opponents <= 2) then
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why the #opp <=2 condition?
don't we also want to not count unfinished matches for ffa standings?

Copy link
Collaborator Author

@ElectricalBoy ElectricalBoy Oct 2, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't we also want to not count unfinished matches for ffa standings?

it would make sense to let br/ffa point standings to be updated for every map finish instead of match finish, wouldn't it?
(disclaimer: I haven't read through ffa standings impl)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for normal standings it would also make sense to update based on games in quite a few cases
but that imo is something to solve when adding game support

end
opponentRoundData.specialstatus = ''
opponentRoundData.match = match2
local matchResult = match2.winner == 0 and 'd' or opponent.placement == 1 and 'w' or 'l'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't the real place to do the fix here?

Copy link
Collaborator Author

@ElectricalBoy ElectricalBoy Oct 2, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if match is not finished then calculating points is somewhat pointless too in swiss
see 5ece1dd

@ElectricalBoy ElectricalBoy requested a review from Rathoz October 2, 2025 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Swiss standings table treats upcoming matches as losses
3 participants