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,14 +3166,23 @@ void SV_UpdateToReliableMessages (void)
|
|||
continue;
|
||||
if (client->controller)
|
||||
continue;
|
||||
ClientReliableWrite_Begin(client, svc_updatefrags, 4);
|
||||
ClientReliableWrite_Byte(client, i);
|
||||
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
|
||||
if (ISNQCLIENT(client) && host_client->spectator == 1)
|
||||
ClientReliableWrite_Short(client, -999);
|
||||
else
|
||||
if (ISNQCLIENT(client) && host_client->spectator == 1)
|
||||
ClientReliableWrite_Short(client, -999);
|
||||
else
|
||||
#endif
|
||||
ClientReliableWrite_Short(client, curfrags);
|
||||
ClientReliableWrite_Short(client, curfrags);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef MVD_RECORDING
|
||||
|
|
Loading…
Reference in a new issue