Better to set while reading sws

This commit is contained in:
Jeroen De Meerleer 2019-02-06 20:47:46 +01:00
parent dcca8fe39e
commit 492b9e8d20
Signed by: JeroenED
GPG Key ID: 28CCCB8F62BFADD6
2 changed files with 5 additions and 5 deletions

View File

@ -162,7 +162,7 @@ class Player
*/
public function setPoints($Points): void
{
$this->Points = $Points / 2;
$this->Points = $Points;
}
/**
@ -210,7 +210,7 @@ class Player
*/
public function setScoreAmerican($ScoreAmerican): void
{
$this->ScoreAmerican = $ScoreAmerican;
$this->ScoreAmerican = $ScoreAmerica;
}
/**

View File

@ -257,7 +257,7 @@ class Sws extends SwsModel
$offset += $length;
$length = 4;
$player->setPoints(self::ReadData('Int', substr($swscontents, $offset, $length)));
$player->setPoints(self::ReadData('Int', substr($swscontents, $offset, $length)) / 2);
$offset += $length;
$length = 4;
@ -265,11 +265,11 @@ class Sws extends SwsModel
$offset += $length;
$length = 4;
$player->setScoreBucholtz(self::ReadData('Int', substr($swscontents, $offset, $length)));
$player->setScoreBucholtz(self::ReadData('Int', substr($swscontents, $offset, $length)) / 2);
$offset += $length;
$length = 4;
$player->setScoreAmerican(self::ReadData('Int', substr($swscontents, $offset, $length)));
$player->setScoreAmerican(self::ReadData('Int', substr($swscontents, $offset, $length)) / 2);
$offset += $length;
$length = 4;