mirror of
https://github.com/JeroenED/libpairtwo.git
synced 2024-11-22 06:26:57 +01:00
Merge branch 'bugfix/result-none-isnotplayed' into develop
This commit is contained in:
commit
3d39caab8e
@ -428,7 +428,6 @@ class Swar4 implements ReaderInterface
|
|||||||
if ($this->getTournament()->getBinaryData('Pairing_' . $ptn . '_opponent') != 4294967295) {
|
if ($this->getTournament()->getBinaryData('Pairing_' . $ptn . '_opponent') != 4294967295) {
|
||||||
$pairing->setOpponent($this->getTournament()->getPlayerById($inscriptionNos[$this->getTournament()->getBinaryData('Pairing_' . $ptn . '_opponent')]));
|
$pairing->setOpponent($this->getTournament()->getPlayerById($inscriptionNos[$this->getTournament()->getBinaryData('Pairing_' . $ptn . '_opponent')]));
|
||||||
}
|
}
|
||||||
//echo $ptn . ' ' . $this->getTournament()->getBinaryData('Pairing_' . $ptn . '_round') . ' ' . $pairing->getPlayer()->getName() . ' - ' . $opponent . ' ' . $this->getTournament()->getBinaryData('Pairing_' . $ptn . '_result') . PHP_EOL;
|
|
||||||
switch ($this->getTournament()->getBinaryData('Pairing_' . $ptn . '_result')) {
|
switch ($this->getTournament()->getBinaryData('Pairing_' . $ptn . '_result')) {
|
||||||
case '1000':
|
case '1000':
|
||||||
$result = Result::lost;
|
$result = Result::lost;
|
||||||
@ -456,6 +455,9 @@ class Swar4 implements ReaderInterface
|
|||||||
$result = Result::none;
|
$result = Result::none;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
if ($this->getTournament()->getBinaryData('Pairing_' . $ptn . '_table') == 16384) {
|
||||||
|
$result = Result::absent;
|
||||||
|
}
|
||||||
$pairing->setResult(new Result($result));
|
$pairing->setResult(new Result($result));
|
||||||
|
|
||||||
switch ($this->getTournament()->getBinaryData('Pairing_' . $ptn . '_color')) {
|
switch ($this->getTournament()->getBinaryData('Pairing_' . $ptn . '_color')) {
|
||||||
|
Loading…
Reference in New Issue
Block a user