mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-05-30 00:10:40 +00:00
cl_main.c:
move the packet loging init call to the right place and remove a duplicate PI_Init call net_packetlog.c: don't be so invasive when dumping packets. use a private msg_t that gets initialized from the analysed packet, rather than net_packet (which tended to corrupt incoming packets)
This commit is contained in:
parent
f0cfc46cb7
commit
87bf3a2b5e
2 changed files with 200 additions and 213 deletions
|
@ -1125,17 +1125,6 @@ CL_Init (void)
|
|||
Info_SetValueForStarKey (cls.userinfo, "stdver", QW_QSG_VERSION,
|
||||
MAX_INFO_STRING);
|
||||
|
||||
PI_Init ();
|
||||
#ifdef PACKET_LOGGING
|
||||
{
|
||||
static char *sound_precache[MAX_MODELS];
|
||||
int i;
|
||||
|
||||
for (i = 0; i < MAX_MODELS; i++)
|
||||
sound_precache[i] = cl.sound_name[i];
|
||||
Net_Log_Init (sound_precache);
|
||||
}
|
||||
#endif
|
||||
CL_Input_Init ();
|
||||
CL_Ents_Init ();
|
||||
CL_TEnts_Init ();
|
||||
|
@ -1637,6 +1626,16 @@ Host_Init (void)
|
|||
|
||||
NET_Init (PORT_CLIENT);
|
||||
Netchan_Init ();
|
||||
#ifdef PACKET_LOGGING
|
||||
{
|
||||
static char *sound_precache[MAX_MODELS];
|
||||
int i;
|
||||
|
||||
for (i = 0; i < MAX_MODELS; i++)
|
||||
sound_precache[i] = cl.sound_name[i];
|
||||
Net_Log_Init (sound_precache);
|
||||
}
|
||||
#endif
|
||||
|
||||
W_LoadWadFile ("gfx.wad");
|
||||
Key_Init ();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue