mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-10 22:51:57 +00:00
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:
parent
a777ea642e
commit
21c077bbb5
1 changed files with 15 additions and 6 deletions
|
@ -3166,6 +3166,13 @@ void SV_UpdateToReliableMessages (void)
|
||||||
continue;
|
continue;
|
||||||
if (client->controller)
|
if (client->controller)
|
||||||
continue;
|
continue;
|
||||||
|
switch(client->protocol)
|
||||||
|
{
|
||||||
|
case SCP_BAD: //bots
|
||||||
|
case SCP_QUAKE2:
|
||||||
|
case SCP_QUAKE3:
|
||||||
|
break;
|
||||||
|
default:
|
||||||
ClientReliableWrite_Begin(client, svc_updatefrags, 4);
|
ClientReliableWrite_Begin(client, svc_updatefrags, 4);
|
||||||
ClientReliableWrite_Byte(client, i);
|
ClientReliableWrite_Byte(client, i);
|
||||||
#ifdef NQPROT
|
#ifdef NQPROT
|
||||||
|
@ -3174,6 +3181,8 @@ void SV_UpdateToReliableMessages (void)
|
||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
ClientReliableWrite_Short(client, curfrags);
|
ClientReliableWrite_Short(client, curfrags);
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef MVD_RECORDING
|
#ifdef MVD_RECORDING
|
||||||
|
|
Loading…
Reference in a new issue