mirror of
https://git.code.sf.net/p/quake/newtree
synced 2024-11-21 19:51:18 +00:00
send a nop packet to make sure *list packets get acked. should prevent
"player overflowed" messages.
This commit is contained in:
parent
bc6ff9fc19
commit
e72ebb6c63
4 changed files with 18 additions and 0 deletions
|
@ -126,6 +126,7 @@ void Netchan_OutOfBand (netadr_t adr, int length, byte *data);
|
|||
void Netchan_OutOfBandPrint (netadr_t adr, char *format, ...) __attribute__((format(printf,2,3)));
|
||||
qboolean Netchan_Process (netchan_t *chan);
|
||||
void Netchan_Setup (netchan_t *chan, netadr_t adr, int qport);
|
||||
void Netchan_AckPacket (netchan_t *chan);
|
||||
|
||||
qboolean Netchan_CanPacket (netchan_t *chan);
|
||||
qboolean Netchan_CanReliable (netchan_t *chan);
|
||||
|
|
|
@ -273,6 +273,8 @@ Model_NextDownload (void)
|
|||
return; // started a download
|
||||
}
|
||||
|
||||
Netchan_AckPacket (&cls.netchan);
|
||||
|
||||
for (i = 1; i < MAX_MODELS; i++) {
|
||||
if (!cl.model_name[i][0])
|
||||
break;
|
||||
|
@ -334,6 +336,8 @@ Sound_NextDownload (void)
|
|||
return; // started a download
|
||||
}
|
||||
|
||||
Netchan_AckPacket (&cls.netchan);
|
||||
|
||||
for (i = 1; i < MAX_SOUNDS; i++) {
|
||||
if (!cl.sound_name[i][0])
|
||||
break;
|
||||
|
|
|
@ -448,3 +448,14 @@ Netchan_Process (netchan_t *chan)
|
|||
|
||||
return true;
|
||||
}
|
||||
|
||||
/*
|
||||
Netchan_AckPacket
|
||||
|
||||
Send a nop packet so that any unacked reliable packets get acked.
|
||||
*/
|
||||
void
|
||||
Netchan_AckPacket (netchan_t *chan)
|
||||
{
|
||||
Netchan_Transmit (chan, 1, (byte*)"\001");
|
||||
}
|
||||
|
|
|
@ -210,6 +210,8 @@ Skin_NextDownload (void)
|
|||
return; // started a download
|
||||
}
|
||||
|
||||
Netchan_AckPacket (&cls.netchan);
|
||||
|
||||
cls.downloadtype = dl_none;
|
||||
|
||||
// now load them in for real
|
||||
|
|
Loading…
Reference in a new issue