From 96757006a19655ff9ebee7008b50acf54f1058e5 Mon Sep 17 00:00:00 2001 From: Beu Date: Sat, 23 Dec 2023 12:46:51 +0100 Subject: [PATCH] fix score not sent when S_RoundsPerMap = 0 --- MatchManagerSuite/MatchManagerCore.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MatchManagerSuite/MatchManagerCore.php b/MatchManagerSuite/MatchManagerCore.php index aecf582..1debc73 100644 --- a/MatchManagerSuite/MatchManagerCore.php +++ b/MatchManagerSuite/MatchManagerCore.php @@ -38,7 +38,7 @@ use ManiaControl\Callbacks\TimerListener; // for pause class MatchManagerCore implements CallbackListener, CommandListener, TimerListener, CommunicationListener, Plugin { const PLUGIN_ID = 152; - const PLUGIN_VERSION = 4.6; + const PLUGIN_VERSION = 4.7; const PLUGIN_NAME = 'MatchManager Core'; const PLUGIN_AUTHOR = 'Beu'; @@ -1561,7 +1561,7 @@ class MatchManagerCore implements CallbackListener, CommandListener, TimerListen } elseif ($structure->getSection() == "EndRound") { $timestamp = time(); - if ($this->nbmaps != 0 && $this->nbrounds <= $this->settings_nbroundsbymap) { + if ($this->nbmaps != 0 && ($this->nbrounds <= $this->settings_nbroundsbymap || $this->settings_nbroundsbymap <= 0)) { // // Players Scores //