From 98a6d2c915addcfa59a7ecdb9627dbd18df95513 Mon Sep 17 00:00:00 2001 From: Belonit <54427022+Belonit@users.noreply.github.com> Date: Mon, 25 Dec 2023 05:12:36 +0300 Subject: [PATCH] Disables MPDEBUG if QuickMatch is enabled --- src/spawner/load_spawn.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/spawner/load_spawn.c b/src/spawner/load_spawn.c index 7db30a0..42b51d9 100644 --- a/src/spawner/load_spawn.c +++ b/src/spawner/load_spawn.c @@ -211,6 +211,10 @@ bool __fastcall Pre_Scenario_Load_Wait() } */ +extern bool MPDEBUG; +extern bool MPDEBUG1; +extern bool MPSYNCDEBUG; + signed int Initialize_Spawn() { int32_t result; @@ -259,6 +263,9 @@ signed int Initialize_Spawn() SkipScoreScreen =INIClass__GetBool(&INIClass_SPAWN, "Settings", "SkipScoreScreen", SkipScoreScreen); Tournament = INIClass__GetInt(&INIClass_SPAWN, "Settings", "Tournament", 0); QuickMatch = INIClass__GetBool(&INIClass_SPAWN, "Settings", "QuickMatch", false); + if (QuickMatch) + MPSYNCDEBUG = MPDEBUG1 = MPDEBUG = false; + RunAutoSS = INIClass__GetBool(&INIClass_SPAWN, "Settings", "RunAutoSS", false); ConnTimeout = INIClass__GetInt(&INIClass_SPAWN, "Settings", "ConnTimeout", 3600); ReconnectTimeout=INIClass__GetInt(&INIClass_SPAWN, "Settings", "ReconnectTimeout", 2400);