Skip to content

Commit

Permalink
Merge pull request ddnet#9261 from Robyt3/Client-LocalTime-Dummy-Cont…
Browse files Browse the repository at this point in the history
…inuous

Fix damage indicators being stuck after connecting dummy
  • Loading branch information
heinrich5991 authored Nov 17, 2024
2 parents 9c02194 + d13d4f7 commit 4215bb4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/engine/client/client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2041,12 +2041,15 @@ void CClient::ProcessServerPacket(CNetChunk *pPacket, int Conn, bool Dummy)
m_aapSnapshots[Conn][SNAP_CURRENT] = m_aSnapshotStorage[Conn].m_pLast;
m_aPrevGameTick[Conn] = m_aapSnapshots[Conn][SNAP_PREV]->m_Tick;
m_aCurGameTick[Conn] = m_aapSnapshots[Conn][SNAP_CURRENT]->m_Tick;
if(!Dummy)
if(Conn == CONN_MAIN)
{
m_LocalStartTime = time_get();
#if defined(CONF_VIDEORECORDER)
IVideo::SetLocalStartTime(m_LocalStartTime);
#endif
}
if(!Dummy)
{
GameClient()->OnNewSnapshot();
}
SetState(IClient::STATE_ONLINE);
Expand Down

0 comments on commit 4215bb4

Please sign in to comment.