Permalink
Browse files

Remove svc_extension, we don't care about q3 compatibility

  • Loading branch information...
Kangz committed Oct 29, 2015
1 parent 212b26c commit 0bfadc1ea1b5dc802099760db136acfe74225b91
Showing with 1 addition and 23 deletions.
  1. +0 −18 daemon/src/engine/client/cl_parse.cpp
  2. +1 −5 daemon/src/engine/qcommon/qcommon.h
@@ -39,7 +39,6 @@ Maryland 20850 USA.
static const char *const svc_strings[ 256 ] =
{
"svc_bad",

"svc_nop",
"svc_gamestate",
"svc_configstring",
@@ -48,7 +47,6 @@ static const char *const svc_strings[ 256 ] =
"svc_download",
"svc_snapshot",
"svc_voip",
"svc_extension",
"svc_EOF"
};

@@ -1091,22 +1089,6 @@ void CL_ParseServerMessage( msg_t *msg )

cmd = MSG_ReadByte( msg );

// See if this is an extension command after the EOF, which means we
// got data that a legacy client should ignore.
if ( ( cmd == svc_EOF ) && ( MSG_LookaheadByte( msg ) == svc_extension ) )
{
SHOWNET( msg, "EXTENSION" );
MSG_ReadByte( msg ); // throw the svc_extension byte away.
cmd = MSG_ReadByte( msg ); // something legacy clients can't do!

// sometimes you get a svc_extension at end of stream...dangling
// bits in the huffman decoder giving a bogus value?
if ( cmd == -1 )
{
cmd = svc_EOF;
}
}

if ( cmd == svc_EOF )
{
SHOWNET( msg, "END OF MESSAGE" );
@@ -319,12 +319,8 @@ enum svc_ops_e
svc_serverCommand, // [string] to be executed by client game module
svc_download, // [short] size [size bytes]
svc_snapshot,
svc_EOF,

// svc_extension follows a svc_EOF, followed by another svc_* ...
// this keeps legacy clients compatible.
svc_extension,
svc_voip, // not wrapped in USE_VOIP, so this value is reserved.
svc_EOF,
};

//

0 comments on commit 0bfadc1

Please sign in to comment.