mirror of
https://github.com/JeroenED/libpairtwo.git
synced 2024-11-22 06:26:57 +01:00
Merge branch 'bugfix/mutual-result' into develop
This commit is contained in:
commit
8dd06c02f7
@ -98,8 +98,12 @@ abstract class Tiebreaks extends Tournament
|
|||||||
$interestingplayers = $opponents;
|
$interestingplayers = $opponents;
|
||||||
if ($key != 0) {
|
if ($key != 0) {
|
||||||
$interestingplayers = [];
|
$interestingplayers = [];
|
||||||
|
$playerstiebreaks = $player->getTiebreaks();
|
||||||
|
array_splice($playerstiebreaks, $key);
|
||||||
foreach ($opponents as $opponent) {
|
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;
|
$interestingplayers[] = $opponent;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user