mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
fixed beginning of gametime margin graph
This commit is contained in:
parent
19a9462fe8
commit
82749dedf0
|
@ -1462,11 +1462,11 @@ void CClient::ProcessPacket(CNetChunk *pPacket)
|
|||
}
|
||||
|
||||
// adjust game time
|
||||
if(m_RecivedSnapshots > 2)
|
||||
{
|
||||
int64 Now = m_GameTime.Get(time_get());
|
||||
int64 TickStart = GameTick*time_freq()/50;
|
||||
int64 TimeLeft = (TickStart-Now)*1000 / time_freq();
|
||||
//st_update(&game_time, (game_tick-1)*time_freq()/50);
|
||||
m_GameTime.Update(&m_GametimeMarginGraph, (GameTick-1)*time_freq()/50, TimeLeft, 0);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue