engine: client: always write buffer.dat so we will be able to request it from users. Append protocol number to it
This commit is contained in:
parent
dcdca01e86
commit
4be75af214
2 changed files with 6 additions and 6 deletions
|
@ -153,6 +153,7 @@ static void CL_WriteErrorMessage( int current_count, sizebuf_t *msg )
|
||||||
|
|
||||||
FS_Write( fp, &cls.starting_count, sizeof( int ));
|
FS_Write( fp, &cls.starting_count, sizeof( int ));
|
||||||
FS_Write( fp, ¤t_count, sizeof( int ));
|
FS_Write( fp, ¤t_count, sizeof( int ));
|
||||||
|
FS_Write( fp, &cls.legacymode, sizeof( cls.legacymode ));
|
||||||
FS_Write( fp, MSG_GetData( msg ), MSG_GetMaxBytes( msg ));
|
FS_Write( fp, MSG_GetData( msg ), MSG_GetMaxBytes( msg ));
|
||||||
FS_Close( fp );
|
FS_Close( fp );
|
||||||
|
|
||||||
|
@ -168,7 +169,7 @@ list last 32 messages for debugging net troubleshooting
|
||||||
*/
|
*/
|
||||||
void CL_WriteMessageHistory( void )
|
void CL_WriteMessageHistory( void )
|
||||||
{
|
{
|
||||||
oldcmd_t *old, *failcommand;
|
oldcmd_t *old;
|
||||||
sizebuf_t *msg = &net_message;
|
sizebuf_t *msg = &net_message;
|
||||||
int i, thecmd;
|
int i, thecmd;
|
||||||
|
|
||||||
|
@ -192,9 +193,8 @@ void CL_WriteMessageHistory( void )
|
||||||
thecmd++;
|
thecmd++;
|
||||||
}
|
}
|
||||||
|
|
||||||
failcommand = &cls_message_debug.oldcmd[thecmd];
|
old = &cls_message_debug.oldcmd[thecmd];
|
||||||
Con_Printf( "BAD: %3i:%s\n", MSG_GetNumBytesRead( msg ) - 1, CL_MsgInfo( failcommand->command ));
|
Con_Printf( S_RED "BAD: " S_DEFAULT "%i %04i %s\n", old->frame_number, old->starting_offset, CL_MsgInfo( old->command ));
|
||||||
if( host_developer.value >= DEV_EXTENDED )
|
CL_WriteErrorMessage( old->starting_offset, msg );
|
||||||
CL_WriteErrorMessage( MSG_GetNumBytesRead( msg ) - 1, msg );
|
|
||||||
cls_message_debug.parsing = false;
|
cls_message_debug.parsing = false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -534,7 +534,7 @@ void CL_ParseGoldSrcServerMessage( sizebuf_t *msg )
|
||||||
{
|
{
|
||||||
if( MSG_CheckOverflow( msg ))
|
if( MSG_CheckOverflow( msg ))
|
||||||
{
|
{
|
||||||
Host_Error( "CL_ParseServerMessage: overflow!\n" );
|
Host_Error( "%s: overflow!\n", __func__ );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue