mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Disallow /save
on teams with practice enabled
This commit is contained in:
parent
2e211c9a31
commit
868e6e0975
|
@ -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