From e598d70690e1db7f8e3012341a03b85f9b8237bd Mon Sep 17 00:00:00 2001 From: havoc Date: Fri, 3 Mar 2006 14:51:07 +0000 Subject: [PATCH] move SV_ClearDatagram call to eliminate missing weapon/pickup effects bug when using cl_movement 1 git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6050 d7cf8633-e32d-0410-b094-e92efae38249 --- host.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/host.c b/host.c index c0a8d30c..bd4760e6 100644 --- a/host.c +++ b/host.c @@ -699,8 +699,6 @@ void Host_ServerFrame (void) if (sv.paused || (cl.islocalgame && (key_dest != key_game || key_consoleactive))) sv.frametime = 0; - // set the time and clear the general datagram - SV_ClearDatagram(); // move things around and think unless paused if (sv.frametime) @@ -709,6 +707,9 @@ void Host_ServerFrame (void) // send all messages to the clients SV_SendClientMessages(); + // clear the general datagram + SV_ClearDatagram(); + // if this server frame took too long, break out of the loop if (Sys_DoubleTime() >= aborttime) break; -- 2.39.2