From 699dccfbc25e39a7af745266fe894cd80cb8a255 Mon Sep 17 00:00:00 2001 From: divverent Date: Fri, 27 Feb 2009 11:18:18 +0000 Subject: [PATCH] add three more places to send keepalives. No more disconnects for "redstarrepublic". git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8766 d7cf8633-e32d-0410-b094-e92efae38249 --- model_brush.c | 6 ++++++ model_shared.c | 3 +++ 2 files changed, 9 insertions(+) diff --git a/model_brush.c b/model_brush.c index 874892a9..1a92b2f5 100644 --- a/model_brush.c +++ b/model_brush.c @@ -4348,6 +4348,9 @@ static void Mod_Q3BSP_LoadBrushes(lump_t *l) } // make the colbrush from the planes out->colbrushf = Collision_NewBrushFromPlanes(loadmodel->mempool, out->numbrushsides, planes, out->texture->supercontents); + + // this whole loop can take a while (e.g. on redstarrepublic4) + CL_KeepaliveMessage(false); } if (planes) Mem_Free(planes); @@ -5983,6 +5986,9 @@ void Mod_Q3BSP_Load(dp_model_t *mod, void *buffer, void *bufferend) if (i == Q3LUMP_PVS || i == Q3LUMP_LEAFS || i == Q3LUMP_NODES) continue; mod->brush.qw_md4sum2 ^= Com_BlockChecksum(mod_base + header->lumps[i].fileofs, header->lumps[i].filelen); + + // all this checksumming can take a while, so let's send keepalives here too + CL_KeepaliveMessage(false); } Mod_Q3BSP_LoadEntities(&header->lumps[Q3LUMP_ENTITIES]); diff --git a/model_shared.c b/model_shared.c index fb93d04f..70a093ee 100644 --- a/model_shared.c +++ b/model_shared.c @@ -565,6 +565,9 @@ void Mod_BuildTriangleNeighbors(int *neighbors, const int *elements, int numtria match = -1; n[p] = match; } + + // also send a keepalive here (this can take a while too!) + CL_KeepaliveMessage(false); } // free the allocated buffer if (edgehashentries != edgehashentriesbuffer) -- 2.39.2