Disallow enabling practice while save and load is in progress

This commit is contained in:
Zwelf 2024-04-17 21:44:44 +02:00
parent e142b2d526
commit da5a466ac3

View file

@ -644,6 +644,15 @@ void CGameContext::ConPractice(IConsole::IResult *pResult, void *pUserData)
return; 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)) if(Teams.IsPractice(Team))
{ {
pSelf->Console()->Print( pSelf->Console()->Print(