mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
actually fix happy ddnet message
This commit is contained in:
parent
ca9c4f532a
commit
d04cb7a36a
|
@ -4078,8 +4078,10 @@ void CGameContext::OnSnap(int ClientID)
|
||||||
pPlayer->Snap(ClientID);
|
pPlayer->Snap(ClientID);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(ClientID > -1)
|
if(ClientID > -1) {
|
||||||
m_apPlayers[ClientID]->FakeSnap();
|
m_apPlayers[ClientID]->FakeSnap();
|
||||||
|
m_apPlayers[ClientID]->m_SentSnaps++;
|
||||||
|
}
|
||||||
|
|
||||||
m_World.Snap(ClientID);
|
m_World.Snap(ClientID);
|
||||||
m_Events.Snap(ClientID);
|
m_Events.Snap(ClientID);
|
||||||
|
|
|
@ -158,7 +158,7 @@ static int PlayerFlags_SixToSeven(int Flags)
|
||||||
|
|
||||||
void CPlayer::Tick()
|
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);
|
ProcessScoreResult(*m_ScoreQueryResult);
|
||||||
m_ScoreQueryResult = nullptr;
|
m_ScoreQueryResult = nullptr;
|
||||||
|
|
|
@ -80,6 +80,8 @@ public:
|
||||||
// used for snapping to just update latency if the scoreboard is active
|
// used for snapping to just update latency if the scoreboard is active
|
||||||
int m_aCurLatency[MAX_CLIENTS];
|
int m_aCurLatency[MAX_CLIENTS];
|
||||||
|
|
||||||
|
int m_SentSnaps = 0;
|
||||||
|
|
||||||
// used for spectator mode
|
// used for spectator mode
|
||||||
int m_SpectatorID;
|
int m_SpectatorID;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue