CL_Disconnect ();
// flush any pending messages - like the score!!!
- start = Sys_FloatTime();
+ start = Sys_DoubleTime();
do
{
count = 0;
}
}
}
- if ((Sys_FloatTime() - start) > 3.0)
+ if ((Sys_DoubleTime() - start) > 3.0)
break;
}
while (count);
host_frametime = (1.0 / host_minfps.value);
}
- host_frametime *= slowmo.value;
- cl.frametime = host_frametime;
+ cl.frametime = host_frametime = bound(0, host_frametime * slowmo.value, 0.1f); // LordHavoc: the QC code relies on no less than 10fps
return true;
}
// update video
if (host_speeds.value)
- time1 = Sys_FloatTime ();
+ time1 = Sys_DoubleTime ();
SCR_UpdateScreen ();
if (host_speeds.value)
- time2 = Sys_FloatTime ();
+ time2 = Sys_DoubleTime ();
// update audio
if (cls.signon == SIGNONS)
if (host_speeds.value)
{
pass1 = (time1 - time3)*1000000;
- time3 = Sys_FloatTime ();
+ time3 = Sys_DoubleTime ();
pass2 = (time2 - time1)*1000000;
pass3 = (time3 - time2)*1000000;
Con_Printf ("%6ius total %6ius server %6ius gfx %6ius snd\n",
return;
}
- time1 = Sys_FloatTime ();
+ time1 = Sys_DoubleTime ();
_Host_Frame (time);
- time2 = Sys_FloatTime ();
+ time2 = Sys_DoubleTime ();
timetotal += time2 - time1;
timecount++;
if (cls.state != ca_dedicated)
{
- Palette_Init("gfx/palette.lmp");
+ VID_InitCvars();
+
+ Gamma_Init();
+
+ Palette_Init();
#ifndef _WIN32 // on non win32, mouse comes before video for security reasons
IN_Init ();