mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2024-11-10 07:21:58 +00:00
warn if unsupported PROTOCOL_RMQ flags are used
This commit is contained in:
parent
f7d250d6a3
commit
58ceb06138
1 changed files with 7 additions and 0 deletions
|
@ -285,8 +285,15 @@ void CL_ParseServerInfo (void)
|
||||||
|
|
||||||
if (cl.protocol == PROTOCOL_RMQ)
|
if (cl.protocol == PROTOCOL_RMQ)
|
||||||
{
|
{
|
||||||
|
const int supportedflags = (PRFL_SHORTANGLE | PRFL_FLOATANGLE | PRFL_24BITCOORD | PRFL_FLOATCOORD | PRFL_EDICTSCALE | PRFL_INT32COORD);
|
||||||
|
|
||||||
// mh - read protocol flags from server so that we know what protocol features to expect
|
// mh - read protocol flags from server so that we know what protocol features to expect
|
||||||
cl.protocolflags = (unsigned int) MSG_ReadLong ();
|
cl.protocolflags = (unsigned int) MSG_ReadLong ();
|
||||||
|
|
||||||
|
if (0 != (cl.protocolflags & (~supportedflags)))
|
||||||
|
{
|
||||||
|
Con_Warning("PROTOCOL_RMQ protocolflags %i contains unsupported flags\n", cl.protocolflags);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else cl.protocolflags = 0;
|
else cl.protocolflags = 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue