From 28351eb001c75cd91c55be4359bba2be3bff5dd0 Mon Sep 17 00:00:00 2001 From: Spoike Date: Mon, 4 Feb 2008 23:41:04 +0000 Subject: [PATCH] Don't flood the client with packets if its not really ready to receive them yet. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2905 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/cl_demo.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/engine/client/cl_demo.c b/engine/client/cl_demo.c index 010bc5a67..7ded3a5e5 100644 --- a/engine/client/cl_demo.c +++ b/engine/client/cl_demo.c @@ -468,6 +468,11 @@ qboolean CL_GetDemoMessage (void) return 1; } #endif + + //client is loading content, don't flood it with packets while its still got no map loaded + if (cl.sendprespawn) + return 0; + readnext: // read the time from the packet if (cls.demoplayback == DPB_MVD || cls.demoplayback == DPB_EZTV)