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:
parent
57b89d3d3e
commit
9cf6a660db
2 changed files with 5 additions and 5 deletions
|
@ -1090,7 +1090,7 @@ void CL_SendCmd (float frametime)
|
||||||
// Con_Printf("%f\n", msecs);
|
// Con_Printf("%f\n", msecs);
|
||||||
|
|
||||||
if (msecs>1000) //come on... That's just stupid.
|
if (msecs>1000) //come on... That's just stupid.
|
||||||
msecs=255;
|
msecs=1000;
|
||||||
if (msecs<0)
|
if (msecs<0)
|
||||||
msecs=0; //erm.
|
msecs=0; //erm.
|
||||||
|
|
||||||
|
@ -1154,7 +1154,7 @@ void CL_SendCmd (float frametime)
|
||||||
|
|
||||||
// send this and the previous cmds in the message, so
|
// send this and the previous cmds in the message, so
|
||||||
// if the last packet was dropped, it can be recovered
|
// if the last packet was dropped, it can be recovered
|
||||||
buf.maxsize = 128;
|
buf.maxsize = sizeof(data);
|
||||||
buf.cursize = 0;
|
buf.cursize = 0;
|
||||||
buf.data = data;
|
buf.data = data;
|
||||||
clientcount = cl.splitclients;
|
clientcount = cl.splitclients;
|
||||||
|
|
|
@ -2635,7 +2635,7 @@ void Host_Frame (float time)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// decide the simulation time
|
// decide the simulation time
|
||||||
realtime += time;
|
realtime += realframetime;
|
||||||
if (oldrealtime > realtime)
|
if (oldrealtime > realtime)
|
||||||
oldrealtime = 0;
|
oldrealtime = 0;
|
||||||
|
|
||||||
|
@ -2682,7 +2682,7 @@ void Host_Frame (float time)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
host_frametime = realtime - oldrealtime;
|
host_frametime = (realtime - oldrealtime)*cl.gamespeed;
|
||||||
oldrealtime = realtime;
|
oldrealtime = realtime;
|
||||||
// if (host_frametime > 0.2)
|
// if (host_frametime > 0.2)
|
||||||
// host_frametime = 0.2;
|
// host_frametime = 0.2;
|
||||||
|
@ -2733,7 +2733,7 @@ void Host_Frame (float time)
|
||||||
{
|
{
|
||||||
extern qboolean runningindepphys;
|
extern qboolean runningindepphys;
|
||||||
if (!runningindepphys)
|
if (!runningindepphys)
|
||||||
CL_SendCmd (realframetime);
|
CL_SendCmd (host_frametime/cl.gamespeed);
|
||||||
|
|
||||||
if (cls.state == ca_onserver && cl.validsequence && cl.worldmodel)
|
if (cls.state == ca_onserver && cl.validsequence && cl.worldmodel)
|
||||||
{ // first update is the final signon stage
|
{ // first update is the final signon stage
|
||||||
|
|
Loading…
Reference in a new issue