1
0
Fork 0
forked from fte/fteqw

SV_Frame no longer takes an argument.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1213 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Mark Olsen 2005-08-10 17:52:18 +00:00
parent f4a3068ae2
commit 44017f0918

View file

@ -267,7 +267,6 @@ main
*/
int main(int argc, char *argv[])
{
double time, oldtime, newtime;
quakeparms_t parms;
// fd_set fdset;
// extern int net_socket;
@ -299,12 +298,11 @@ int main(int argc, char *argv[])
SV_Init (&parms);
// run one frame immediately for first heartbeat
SV_Frame (0.1);
SV_Frame ();
//
// main loop
//
oldtime = Sys_DoubleTime () - 0.1;
while (1)
{
if (do_stdin)
@ -315,12 +313,7 @@ int main(int argc, char *argv[])
stdin_ready = false;
}
// find time passed since last cycle
newtime = Sys_DoubleTime ();
time = newtime - oldtime;
oldtime = newtime;
SV_Frame (time);
SV_Frame ();
// extrasleep is just a way to generate a fucked up connection on purpose
if (sys_extrasleep.value)