mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-02-22 11:21:31 +00:00
Add packet logging / parsing for demo playback too.
This commit is contained in:
parent
8a4dfbf615
commit
bbf8adaa8e
1 changed files with 7 additions and 1 deletions
|
@ -1099,6 +1099,10 @@ CL_ReadPackets (void)
|
|||
{
|
||||
// while (NET_GetPacket ())
|
||||
while (CL_GetMessage ()) {
|
||||
|
||||
#ifdef PACKET_LOGGING
|
||||
if (cls.demoplayback) Log_Incoming_Packet(net_message.data,net_message.cursize);
|
||||
#endif
|
||||
//
|
||||
// remote command packet
|
||||
//
|
||||
|
@ -1219,7 +1223,9 @@ CL_Init (void)
|
|||
Info_SetValueForStarKey (cls.userinfo, "*ver", st, MAX_INFO_STRING);
|
||||
Info_SetValueForStarKey (cls.userinfo, "stdver", QSG_VERSION,
|
||||
MAX_INFO_STRING);
|
||||
|
||||
#ifdef PACKET_LOGGING
|
||||
Net_Log_Init();
|
||||
#endif
|
||||
CL_Input_Init ();
|
||||
CL_Ents_Init ();
|
||||
CL_TEnts_Init ();
|
||||
|
|
Loading…
Reference in a new issue