actually fix happy ddnet message

This commit is contained in:
swarfeya 2024-01-04 18:36:32 +01:00
parent ca9c4f532a
commit d04cb7a36a
3 changed files with 6 additions and 2 deletions

View file

@ -4078,8 +4078,10 @@ void CGameContext::OnSnap(int ClientID)
pPlayer->Snap(ClientID);
}
if(ClientID > -1)
if(ClientID > -1) {
m_apPlayers[ClientID]->FakeSnap();
m_apPlayers[ClientID]->m_SentSnaps++;
}
m_World.Snap(ClientID);
m_Events.Snap(ClientID);

View file

@ -158,7 +158,7 @@ static int PlayerFlags_SixToSeven(int Flags)
void CPlayer::Tick()
{
if(m_ScoreQueryResult != nullptr && m_ScoreQueryResult->m_Completed)
if(m_ScoreQueryResult != nullptr && m_ScoreQueryResult->m_Completed && m_SentSnaps >= 3)
{
ProcessScoreResult(*m_ScoreQueryResult);
m_ScoreQueryResult = nullptr;

View file

@ -80,6 +80,8 @@ public:
// used for snapping to just update latency if the scoreboard is active
int m_aCurLatency[MAX_CLIENTS];
int m_SentSnaps = 0;
// used for spectator mode
int m_SpectatorID;