From ac4ec198bf24364bd77c2ed13718d95d4e57d56e Mon Sep 17 00:00:00 2001 From: beu Date: Wed, 5 Jan 2022 08:21:04 +0100 Subject: [PATCH] fix round counter in cup mode --- MatchManagerSuite/MatchManagerCore.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/MatchManagerSuite/MatchManagerCore.php b/MatchManagerSuite/MatchManagerCore.php index d04650a..a32aacc 100644 --- a/MatchManagerSuite/MatchManagerCore.php +++ b/MatchManagerSuite/MatchManagerCore.php @@ -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++; } }