fix round counter in cup mode

This commit is contained in:
Beu 2022-01-05 08:21:04 +01:00
parent cb322ef83f
commit ac4ec198bf

View File

@ -1551,7 +1551,8 @@ class MatchManagerCore implements CallbackListener, CommandListener, TimerListen
//
$this->preendroundscore = array();
if (!$this->pauseon && !$this->skipround) {
if ($this->currentgmbase != "Cup" || ($this->currentgmbase == "Cup" && isset($atleastonefinished) && $atleastonefinished)) { // Round is skipped if no one finishes only in cup mode
if ($this->currentgmbase != "Cup" || ($this->currentgmbase == "Cup" && count($this->currentscore) > 0 && $this->currentscore[0][4] > 0)) { // Round is skipped if no one finishes only in cup mode
Logger::log("Round not counted because no one finished");
$this->nbrounds++;
}
}