mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Merge pull request #8220 from Zwelf/pr-practice-disallow-save
Disallow `/save` on teams with practice enabled
This commit is contained in:
commit
88ff8204db
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue