mirror of
https://github.com/JeroenED/libpairtwo.git
synced 2024-11-05 14:56:51 +01:00
BUGFIX: mutual result did not take care of all previous tiebreaks
This commit is contained in:
parent
6cdb0aac6a
commit
1867d4d117
@ -98,8 +98,12 @@ abstract class Tiebreaks extends Tournament
|
||||
$interestingplayers = $opponents;
|
||||
if ($key != 0) {
|
||||
$interestingplayers = [];
|
||||
$playerstiebreaks = $player->getTiebreaks();
|
||||
array_splice($playerstiebreaks, $key);
|
||||
foreach ($opponents as $opponent) {
|
||||
if (($opponent->getTiebreaks()[$key - 1] == $player->getTiebreaks()[$key - 1]) && ($player != $opponent)) {
|
||||
$opponenttiebreaks = $opponent->getTiebreaks();
|
||||
array_splice($opponenttiebreaks, $key);
|
||||
if (($playerstiebreaks == $opponenttiebreaks) && ($player != $opponent)) {
|
||||
$interestingplayers[] = $opponent;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user