Send frag updates according to client protocol (removing warnings due to bots being sent messages).

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5626 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2020-02-16 19:16:19 +00:00
parent a777ea642e
commit 21c077bbb5

View file

@ -3166,6 +3166,13 @@ void SV_UpdateToReliableMessages (void)
continue;
if (client->controller)
continue;
switch(client->protocol)
{
case SCP_BAD: //bots
case SCP_QUAKE2:
case SCP_QUAKE3:
break;
default:
ClientReliableWrite_Begin(client, svc_updatefrags, 4);
ClientReliableWrite_Byte(client, i);
#ifdef NQPROT
@ -3174,6 +3181,8 @@ void SV_UpdateToReliableMessages (void)
else
#endif
ClientReliableWrite_Short(client, curfrags);
break;
}
}
#ifdef MVD_RECORDING