mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 14:38:18 +00:00
cleaned up some code
This commit is contained in:
parent
d0e0d5b043
commit
f41fa4baba
|
@ -1256,7 +1256,6 @@ void CClient::ProcessPacket(CNetChunk *pPacket)
|
|||
// game message
|
||||
if(m_DemoRecorder.IsRecording())
|
||||
m_DemoRecorder.RecordMessage(pPacket->m_pData, pPacket->m_DataSize);
|
||||
// demorec_record_write("MESG", pPacket->data_size, );
|
||||
|
||||
GameClient()->OnMessage(Msg, &Unpacker);
|
||||
}
|
||||
|
@ -1422,7 +1421,6 @@ void CClient::Update()
|
|||
{
|
||||
int64 CurtickStart = (m_aSnapshots[SNAP_CURRENT]->m_Tick)*time_freq()/50;
|
||||
int64 PrevtickStart = (m_aSnapshots[SNAP_PREV]->m_Tick)*time_freq()/50;
|
||||
//tg_add(&predicted_time_graph, pred_now, 0);
|
||||
int PrevPredTick = (int)(PredNow*50/time_freq());
|
||||
int NewPredTick = PrevPredTick+1;
|
||||
static float LastPredintra = 0;
|
||||
|
@ -1484,15 +1482,6 @@ void CClient::Update()
|
|||
ActionTaken = Now;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
/*if(now > action_taken+time_freq()*(10+config.dbg_stress))
|
||||
{
|
||||
dbg_msg("stress", "disconnecting!");
|
||||
Disconnect();
|
||||
action_taken = now;
|
||||
}*/
|
||||
}
|
||||
}
|
||||
|
||||
// pump the network
|
||||
|
|
Loading…
Reference in a new issue