mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Try to fix /save for solo servers
This commit is contained in:
parent
5b72add865
commit
5cbd71de8f
|
@ -208,7 +208,7 @@ CSaveTeam::~CSaveTeam()
|
|||
|
||||
int CSaveTeam::save(int Team)
|
||||
{
|
||||
if(Team > 0 && Team < 64)
|
||||
if(g_Config.m_SvTeam == 3 || (Team > 0 && Team < 64))
|
||||
{
|
||||
CGameTeams* Teams = &(((CGameControllerDDRace*)m_pController)->m_Teams);
|
||||
|
||||
|
@ -253,7 +253,7 @@ int CSaveTeam::save(int Team)
|
|||
return 0;
|
||||
}
|
||||
else
|
||||
return 1;
|
||||
return 1;
|
||||
}
|
||||
|
||||
int CSaveTeam::load(int Team)
|
||||
|
|
|
@ -1535,7 +1535,7 @@ void CSqlScore::SaveTeamThread(void *pUser)
|
|||
|
||||
int Num = -1;
|
||||
|
||||
if(Team > 0 && Team < 64 && ((CGameControllerDDRace*)(pData->m_pSqlData->GameServer()->m_pController))->m_Teams.Count(Team) > 0)
|
||||
if((g_Config.m_SvTeam == 3 || (Team > 0 && Team < 64)) && ((CGameControllerDDRace*)(pData->m_pSqlData->GameServer()->m_pController))->m_Teams.Count(Team) > 0)
|
||||
{
|
||||
SavedTeam = new CSaveTeam(pData->m_pSqlData->GameServer()->m_pController);
|
||||
Num = SavedTeam->save(Team);
|
||||
|
|
Loading…
Reference in a new issue