Fix: Finish score should always show the fastest time

This commit is contained in:
def 2017-07-23 21:33:55 +02:00
parent bf0e67a34a
commit 79d29b1e31
2 changed files with 5 additions and 0 deletions

View file

@ -119,6 +119,8 @@ void CPlayer::Reset()
m_DND = false;
m_LastPause = 0;
m_Score = -9999;
m_HasFinishScore = false
// Variable initialized:
m_Last_Team = 0;

View file

@ -595,7 +595,10 @@ void CGameTeams::OnFinish(CPlayer* Player)
int TTime = 0 - (int)Time;
if (Player->m_Score < TTime || !Player->m_HasFinishScore)
{
Player->m_Score = TTime;
Player->m_HasFinishScore = true;
}
}
void CGameTeams::OnCharacterSpawn(int ClientID)