mirror of
https://github.com/w23/xash3d-fwgs
synced 2024-11-09 20:09:21 +01:00
engine: server: updated TSource query to be more compatible with GoldSrc standard (#497)
Mark TSource queries as connectionless. Only send Windows as the os if the engine was built on it.
This commit is contained in:
parent
e9712fc24f
commit
2ad209b973
@ -2182,6 +2182,7 @@ void SV_TSourceEngineQuery( netadr_t from )
|
||||
|
||||
MSG_Init( &buf, "TSourceEngineQuery", answer, sizeof( answer ));
|
||||
|
||||
MSG_WriteLong( &buf, -1 ); // Mark as connectionless
|
||||
MSG_WriteByte( &buf, 'm' );
|
||||
MSG_WriteString( &buf, NET_AdrToString( net_local ));
|
||||
MSG_WriteString( &buf, hostname.string );
|
||||
@ -2192,8 +2193,11 @@ void SV_TSourceEngineQuery( netadr_t from )
|
||||
MSG_WriteByte( &buf, svs.maxclients );
|
||||
MSG_WriteByte( &buf, PROTOCOL_VERSION );
|
||||
MSG_WriteByte( &buf, Host_IsDedicated() ? 'D' : 'L' );
|
||||
#if defined(_WIN32)
|
||||
MSG_WriteByte( &buf, 'W' );
|
||||
|
||||
#else
|
||||
MSG_WriteByte( &buf, 'L' );
|
||||
#endif
|
||||
if( Q_stricmp( GI->gamefolder, "valve" ))
|
||||
{
|
||||
MSG_WriteByte( &buf, 1 ); // mod
|
||||
|
Loading…
Reference in New Issue
Block a user