Try to fix /save for solo servers

This commit is contained in:
def 2014-07-28 15:42:57 +02:00
parent 5b72add865
commit 5cbd71de8f
2 changed files with 3 additions and 3 deletions

View file

@ -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)

View file

@ -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);