minor fixes

This commit is contained in:
Beu 2022-01-24 21:32:28 +01:00
parent 1e1ad7e06d
commit 39cbff3d3d

View File

@ -1442,8 +1442,10 @@ class MatchManagerCore implements CallbackListener, CommandListener, TimerListen
Logger::log("Pause"); Logger::log("Pause");
} else { } else {
$this->maniaControl->getChat()->sendInformation($this->chatprefix . '$o$iRound: ' . ($this->nbrounds + 1) . ' / ' . $this->settings_nbroundsbymap); $this->maniaControl->getChat()->sendInformation($this->chatprefix . '$o$iRound: ' . ($this->nbrounds + 1) . ' / ' . $this->settings_nbroundsbymap);
if ($this->settings_nbroundsbymap != 1) {
Logger::log("Round: " . ($this->nbrounds + 1) . ' / ' . $this->settings_nbroundsbymap); Logger::log("Round: " . ($this->nbrounds + 1) . ' / ' . $this->settings_nbroundsbymap);
} }
}
}); });
} }
@ -1552,8 +1554,9 @@ class MatchManagerCore implements CallbackListener, CommandListener, TimerListen
$this->preendroundscore = array(); $this->preendroundscore = array();
if (!$this->pauseon && !$this->skipround) { if (!$this->pauseon && !$this->skipround) {
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 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++; $this->nbrounds++;
} else {
Logger::log("Round not counted because no one finished");
} }
} }
if ($this->skipround) { if ($this->skipround) {