about summary refs log tree commit diff
path: root/src/engine
diff options
context:
space:
mode:
authoroy <Tom_Adams@web.de>2011-01-19 19:29:10 +0100
committeroy <Tom_Adams@web.de>2011-01-19 19:29:10 +0100
commit82749dedf0d95a41adf517e24a15c92bb656acc4 (patch)
treeb895f93f4f9bc965dcf1757b6be88e5bb117e561 /src/engine
parent19a9462fe88b2573ab9f24a2890d4affb2bdcf47 (diff)
downloadzcatch-82749dedf0d95a41adf517e24a15c92bb656acc4.tar.gz
zcatch-82749dedf0d95a41adf517e24a15c92bb656acc4.zip
fixed beginning of gametime margin graph
Diffstat (limited to 'src/engine')
-rw-r--r--src/engine/client/client.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/engine/client/client.cpp b/src/engine/client/client.cpp
index 3652b272..6b52615e 100644
--- a/src/engine/client/client.cpp
+++ b/src/engine/client/client.cpp
@@ -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);
 						}