mirror of
https://github.com/JeroenED/libpairtwo.git
synced 2024-11-25 15:57:41 +01:00
Merge branch 'bugfix/kashdanfix' into develop
This commit is contained in:
commit
11dd03b9e6
@ -259,17 +259,17 @@ abstract class Tiebreaks extends Tournament
|
|||||||
if (array_search($pairing->getResult(), Constants::Won) !== false) {
|
if (array_search($pairing->getResult(), Constants::Won) !== false) {
|
||||||
$toadd = 3;
|
$toadd = 3;
|
||||||
} elseif (array_search($pairing->getResult(), Constants::Draw) !== false) {
|
} elseif (array_search($pairing->getResult(), Constants::Draw) !== false) {
|
||||||
$toadd = 2;
|
|
||||||
} elseif (array_search($pairing->getResult(), Constants::Lost) !== false) {
|
|
||||||
$toadd = 1;
|
$toadd = 1;
|
||||||
|
} elseif (array_search($pairing->getResult(), Constants::Lost) !== false) {
|
||||||
|
$toadd = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (array_search(Constants::NotPlayed, $pairing->getResult()) !== false) {
|
if (array_search($pairing->getResult(), Constants::NotPlayed) !== false) {
|
||||||
$toadd = 0;
|
$toadd = -1;
|
||||||
}
|
}
|
||||||
$tiebreak += $toadd;
|
$tiebreak += $toadd;
|
||||||
}
|
}
|
||||||
return $tiebreak;
|
return $tiebreak; // - $player->getNoOfWins();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user