mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2024-11-14 00:50:38 +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: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@440 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
2bcdb4b39f
commit
97c9c807f8
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.
|
so the server doesn't disconnect.
|
||||||
==================
|
==================
|
||||||
*/
|
*/
|
||||||
|
static byte net_olddata[NET_MAXMESSAGE];
|
||||||
void CL_KeepaliveMessage (void)
|
void CL_KeepaliveMessage (void)
|
||||||
{
|
{
|
||||||
float time;
|
float time;
|
||||||
static float lastmsg;
|
static float lastmsg;
|
||||||
int ret;
|
int ret;
|
||||||
sizebuf_t old;
|
sizebuf_t old;
|
||||||
byte olddata[8192];
|
byte *olddata;
|
||||||
|
|
||||||
if (sv.active)
|
if (sv.active)
|
||||||
return; // no need if server is local
|
return; // no need if server is local
|
||||||
|
@ -206,6 +207,7 @@ void CL_KeepaliveMessage (void)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// read messages from server, should just be nops
|
// read messages from server, should just be nops
|
||||||
|
olddata = net_olddata;
|
||||||
old = net_message;
|
old = net_message;
|
||||||
memcpy (olddata, net_message.data, net_message.cursize);
|
memcpy (olddata, net_message.data, net_message.cursize);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue