mirror of
https://github.com/JeroenED/libpairtwo.git
synced 2024-11-24 15:31:00 +01:00
Better to set while reading sws
This commit is contained in:
parent
dcca8fe39e
commit
492b9e8d20
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user