mirror of
https://github.com/JeroenED/libpairtwo.git
synced 2024-11-25 07:47:42 +01:00
Merge branch 'bugfix/buchholz-wrong' into develop
This commit is contained in:
commit
8b3258988d
@ -6,7 +6,7 @@
|
||||
* ENHANCEMENT: `Class::getBinaryData` methods return null if field is non-existent
|
||||
* CHANGE: `Tournament::getArbiter` accepts a `int` parameter representing the order of the arbiters
|
||||
* BUGFIX: `Player:GetId` returns elo instead of id
|
||||
* BUGFIX: `Tournament::CalculateBuchholz` did not return the correct score when player had onplayed rounds
|
||||
* BUGFIX: `Tournament::CalculateBuchholz` did not return the correct score when player had unplayed rounds
|
||||
|
||||
## v1.1.2 (Release: 21-jun-2019)
|
||||
* ENHANCEMENT: Added update section to dist/readme.md
|
||||
|
@ -742,10 +742,7 @@ class Tournament
|
||||
$intpairings = array_slice($intpairings, $cutlowest);
|
||||
$intpairings = array_slice($intpairings, 0 - $cuthighest);
|
||||
|
||||
foreach ($intpairings as $intkey => $intpairing) {
|
||||
$tiebreak += $intpairing;
|
||||
}
|
||||
return $tiebreak;
|
||||
return array_sum($intpairings);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user