fixed beginning of gametime margin graph

This commit is contained in:
oy 2011-01-19 19:29:10 +01:00
parent 19a9462fe8
commit 82749dedf0

View file

@ -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);
}