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