Hrm, that's an embarrasing bug..

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@911 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2005-03-22 02:08:01 +00:00
parent 57b89d3d3e
commit 9cf6a660db
2 changed files with 5 additions and 5 deletions

View File

@ -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;

View File

@ -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