mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 14:38:18 +00:00
Disallow enabling practice while save and load is in progress
This commit is contained in:
parent
e142b2d526
commit
da5a466ac3
|
@ -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(
|
||||||
|
|
Loading…
Reference in a new issue