From da5a466ac376e9b78a88bf19074eee06ab6400cb Mon Sep 17 00:00:00 2001 From: Zwelf Date: Wed, 17 Apr 2024 21:44:44 +0200 Subject: [PATCH] Disallow enabling practice while save and load is in progress --- src/game/server/ddracechat.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/game/server/ddracechat.cpp b/src/game/server/ddracechat.cpp index 7ab5881df..0d75dfb8d 100644 --- a/src/game/server/ddracechat.cpp +++ b/src/game/server/ddracechat.cpp @@ -644,6 +644,15 @@ void CGameContext::ConPractice(IConsole::IResult *pResult, void *pUserData) return; } + if(Teams.GetSaving(Team)) + { + pSelf->Console()->Print( + IConsole::OUTPUT_LEVEL_STANDARD, + "chatresp", + "Practice mode can't be enabled while team save or load is in progress"); + return; + } + if(Teams.IsPractice(Team)) { pSelf->Console()->Print(