mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
fix no score when joining when using file based score
This commit is contained in:
parent
11127f9344
commit
b92607eb7d
|
@ -1031,7 +1031,7 @@ void CGameContext::OnClientEnter(int ClientID)
|
||||||
m_apPlayers[ClientID]->Respawn();
|
m_apPlayers[ClientID]->Respawn();
|
||||||
// init the player
|
// init the player
|
||||||
Score()->PlayerData(ClientID)->Reset();
|
Score()->PlayerData(ClientID)->Reset();
|
||||||
m_apPlayers[ClientID]->m_Score = -9999;
|
m_apPlayers[ClientID]->m_Score = (Score()->PlayerData(ClientID)->m_BestTime) ? Score()->PlayerData(ClientID)->m_BestTime : -9999;
|
||||||
|
|
||||||
// Can't set score here as LoadScore() is threaded, run it in
|
// Can't set score here as LoadScore() is threaded, run it in
|
||||||
// LoadScoreThreaded() instead
|
// LoadScoreThreaded() instead
|
||||||
|
|
Loading…
Reference in a new issue