diff --git a/src/Readers/Swar6.php b/src/Readers/Swar6.php index a8655e2..5688bc3 100644 --- a/src/Readers/Swar6.php +++ b/src/Readers/Swar6.php @@ -283,8 +283,12 @@ class Swar6 implements ReaderInterface $custompoints['loss'] = $this->readData('Int', $swshandle) / 4; $custompoints['bye'] = $this->readData('Int', $swshandle) / 4; $custompoints['presence'] = $this->readData('Int', $swshandle) / 4; + $this->Tournament->IsPresencePoints = (bool)$this->readData('Int', $swshandle); + if(!$this->Tournament->IsPresencePoints) { + $custompoints['absence'] = $custompoints['presence']; + unset($custompoints['presence']) + } if($applycustompoints) $this->Tournament->CustomPoints = $custompoints; - $this->Tournament->EloUsed = $this->readData('Int', $swshandle); $this->Tournament->TournoiStd = $this->readData('Int', $swshandle); $this->Tournament->TbPersonel = $this->readData('Int', $swshandle); $this->Tournament->ApparOrder = $this->readData('Int', $swshandle);