mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-02-23 03:40:52 +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 (NET_GetPacket ())
|
||||||
while (CL_GetMessage ()) {
|
while (CL_GetMessage ()) {
|
||||||
|
|
||||||
|
#ifdef PACKET_LOGGING
|
||||||
|
if (cls.demoplayback) Log_Incoming_Packet(net_message.data,net_message.cursize);
|
||||||
|
#endif
|
||||||
//
|
//
|
||||||
// remote command packet
|
// remote command packet
|
||||||
//
|
//
|
||||||
|
@ -1219,7 +1223,9 @@ CL_Init (void)
|
||||||
Info_SetValueForStarKey (cls.userinfo, "*ver", st, MAX_INFO_STRING);
|
Info_SetValueForStarKey (cls.userinfo, "*ver", st, MAX_INFO_STRING);
|
||||||
Info_SetValueForStarKey (cls.userinfo, "stdver", QSG_VERSION,
|
Info_SetValueForStarKey (cls.userinfo, "stdver", QSG_VERSION,
|
||||||
MAX_INFO_STRING);
|
MAX_INFO_STRING);
|
||||||
|
#ifdef PACKET_LOGGING
|
||||||
|
Net_Log_Init();
|
||||||
|
#endif
|
||||||
CL_Input_Init ();
|
CL_Input_Init ();
|
||||||
CL_Ents_Init ();
|
CL_Ents_Init ();
|
||||||
CL_TEnts_Init ();
|
CL_TEnts_Init ();
|
||||||
|
|
Loading…
Reference in a new issue