mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2024-11-10 07:21:58 +00:00
cl_parse.c (CL_KeepaliveMessage): fixed big boom in net play in maps with
extended limits. it was a fitzquake-0.85 bug noticed by `mh' as explained at http://forums.inside3d.com/viewtopic.php?p=35030 git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@440 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
7851cda724
commit
46f0616a0b
1 changed files with 3 additions and 1 deletions
|
@ -192,13 +192,14 @@ When the client is taking a long time to load stuff, send keepalive messages
|
|||
so the server doesn't disconnect.
|
||||
==================
|
||||
*/
|
||||
static byte net_olddata[NET_MAXMESSAGE];
|
||||
void CL_KeepaliveMessage (void)
|
||||
{
|
||||
float time;
|
||||
static float lastmsg;
|
||||
int ret;
|
||||
sizebuf_t old;
|
||||
byte olddata[8192];
|
||||
byte *olddata;
|
||||
|
||||
if (sv.active)
|
||||
return; // no need if server is local
|
||||
|
@ -206,6 +207,7 @@ void CL_KeepaliveMessage (void)
|
|||
return;
|
||||
|
||||
// read messages from server, should just be nops
|
||||
olddata = net_olddata;
|
||||
old = net_message;
|
||||
memcpy (olddata, net_message.data, net_message.cursize);
|
||||
|
||||
|
|
Loading…
Reference in a new issue