Disallow /save on teams with practice enabled

This commit is contained in:
Zwelf 2024-04-16 00:34:23 +02:00
parent 2e211c9a31
commit 868e6e0975

View file

@ -290,6 +290,8 @@ void CScore::SaveTeam(int ClientId, const char *pCode, const char *pServer)
int Team = pController->Teams().m_Core.Team(ClientId);
if(pController->Teams().GetSaving(Team))
return;
if(pController->Teams().IsPractice(Team))
return;
auto SaveResult = std::make_shared<CScoreSaveResult>(ClientId);
SaveResult->m_SaveId = RandomUuid();