mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-17 21:48:19 +00:00
Merge pull request #9261 from Robyt3/Client-LocalTime-Dummy-Continuous
Fix damage indicators being stuck after connecting dummy
This commit is contained in:
commit
4215bb47bd
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue