mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
engine: client: fix uninitlaized variable, treat legacy info response servers as 48 even though it's incorrect
This commit is contained in:
@@ -2084,10 +2084,14 @@ static void CL_ParseGoldSrcStatusMessage( netadr_t from, sizebuf_t *msg, qboolea
|
||||
|
||||
if( legacy_format )
|
||||
{
|
||||
string address;
|
||||
int mod;
|
||||
|
||||
Q_strncpy( address, MSG_ReadString( msg ), sizeof( address ));
|
||||
// FIXME: this is invalid, `m` servers might be geniune 47 proto servers
|
||||
// but many servers that reply with legacy format are 47/48
|
||||
// so at least let the user to connect them
|
||||
p = PROTOCOL_GOLDSRC_VERSION;
|
||||
|
||||
MSG_ReadString( msg ); // address
|
||||
Q_strncpy( host, MSG_ReadString( msg ), sizeof( host ));
|
||||
Q_strncpy( map, MSG_ReadString( msg ), sizeof( map ));
|
||||
Q_strncpy( gamedir, MSG_ReadString( msg ), sizeof( gamedir ));
|
||||
|
||||
Reference in New Issue
Block a user