mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 18:18:18 +00:00
Refactored a variable
This commit is contained in:
parent
e6189d05c4
commit
457fee998d
|
@ -353,19 +353,19 @@ void CGameTeams::OnFinish(CPlayer* Player)
|
|||
}
|
||||
}
|
||||
|
||||
bool pCallSaveScore = false;
|
||||
bool CallSaveScore = false;
|
||||
#if defined(CONF_SQL)
|
||||
pCallSaveScore = g_Config.m_SvUseSQL;
|
||||
CallSaveScore = g_Config.m_SvUseSQL;
|
||||
#endif
|
||||
|
||||
if(!pData->m_BestTime || time < pData->m_BestTime)
|
||||
{
|
||||
// update the score
|
||||
pData->Set(time, GetCpCurrent(Player));
|
||||
pCallSaveScore = true;
|
||||
CallSaveScore = true;
|
||||
}
|
||||
|
||||
if(pCallSaveScore)
|
||||
if(CallSaveScore)
|
||||
if(str_comp_num(Server()->ClientName(Player->GetCID()), "nameless tee", 12) != 0)
|
||||
GameServer()->Score()->SaveScore(Player->GetCID(), time, GetCpCurrent(Player));
|
||||
|
||||
|
|
Loading…
Reference in a new issue