mirror of
https://github.com/JeroenED/libpairtwo.git
synced 2024-12-23 12:50:59 +01:00
Merge branch 'develop'
This commit is contained in:
commit
9aca75d298
@ -235,7 +235,7 @@ class Player
|
||||
if ($key < $round || $round == -1) {
|
||||
if ($pairing->Result == Result::WON_BYE) {
|
||||
$points += (isset($custompoints[ 'bye' ])) ? $custompoints[ 'bye' ] : 1;
|
||||
} else if ($pairing->Result == Result::ABSENT !== false) {
|
||||
} else if ($pairing->Result == Result::ABSENT) {
|
||||
$points += (isset($custompoints[ 'absent' ])) ? $custompoints[ 'absent' ] : 0;
|
||||
} elseif (array_search($pairing->Result, Constants::WON) !== false) {
|
||||
$points += (isset($custompoints[ 'win' ])) ? $custompoints[ 'win' ] : 1;
|
||||
|
@ -517,7 +517,7 @@ class Swar5 implements ReaderInterface
|
||||
$player->Performance = $this->readData('Int', $swshandle); // To Calculate by libpairtwo
|
||||
$player->Absent = $this->readData('Int', $swshandle);
|
||||
$player->AbsentRounds = $this->readData('Int', $swshandle);
|
||||
if(version_compare($this->Release, '5.53', '>=')) $player->Paid = $this->readData('Int', $swshandle);
|
||||
if(version_compare($this->Release, '5.53', "<=")) $player->Paid = $this->readData('Int', $swshandle);
|
||||
$player->ExtraPoints = $this->readData('Int', $swshandle);
|
||||
$player->SpecialPoints = $this->readData('Int', $swshandle);
|
||||
$player->AllocatedRounds = $this->readData('Int', $swshandle);
|
||||
|
Loading…
Reference in New Issue
Block a user