From 9cf6a660db65a65824d58245c7810d20d3a79658 Mon Sep 17 00:00:00 2001 From: Spoike Date: Tue, 22 Mar 2005 02:08:01 +0000 Subject: [PATCH] Hrm, that's an embarrasing bug.. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@911 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/cl_input.c | 4 ++-- engine/client/cl_main.c | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/engine/client/cl_input.c b/engine/client/cl_input.c index 2ed59a36b..3ba0684eb 100644 --- a/engine/client/cl_input.c +++ b/engine/client/cl_input.c @@ -1090,7 +1090,7 @@ void CL_SendCmd (float frametime) // Con_Printf("%f\n", msecs); if (msecs>1000) //come on... That's just stupid. - msecs=255; + msecs=1000; if (msecs<0) msecs=0; //erm. @@ -1154,7 +1154,7 @@ void CL_SendCmd (float frametime) // send this and the previous cmds in the message, so // if the last packet was dropped, it can be recovered - buf.maxsize = 128; + buf.maxsize = sizeof(data); buf.cursize = 0; buf.data = data; clientcount = cl.splitclients; diff --git a/engine/client/cl_main.c b/engine/client/cl_main.c index 5d5e18d80..37d518bc6 100644 --- a/engine/client/cl_main.c +++ b/engine/client/cl_main.c @@ -2635,7 +2635,7 @@ void Host_Frame (float time) #endif // decide the simulation time - realtime += time; + realtime += realframetime; if (oldrealtime > realtime) oldrealtime = 0; @@ -2682,7 +2682,7 @@ void Host_Frame (float time) return; } - host_frametime = realtime - oldrealtime; + host_frametime = (realtime - oldrealtime)*cl.gamespeed; oldrealtime = realtime; // if (host_frametime > 0.2) // host_frametime = 0.2; @@ -2733,7 +2733,7 @@ void Host_Frame (float time) { extern qboolean runningindepphys; if (!runningindepphys) - CL_SendCmd (realframetime); + CL_SendCmd (host_frametime/cl.gamespeed); if (cls.state == ca_onserver && cl.validsequence && cl.worldmodel) { // first update is the final signon stage