Пример #1
0
/*
=================
Host_Frame
=================
*/
void Host_Frame( float time )
{
	if( setjmp( host.abortframe ))
		return;

	Host_InputFrame ();	// input frame

	// decide the simulation time
	if( !Host_FilterTime( time ))
		return;

	Host_GetConsoleCommands ();

	Host_ServerFrame (); // server frame
	Host_ClientFrame (); // client frame

	host.framecount++;
}
Пример #2
0
/*
=================
Host_Frame
=================
*/
void Host_Frame( float time )
{
	if( setjmp( host.abortframe ))
		return;

	Host_Autosleep();

	// decide the simulation time
	if( !Host_FilterTime( time ))
		return;

	Host_InputFrame ();	// input frame

	Host_GetConsoleCommands ();

	Host_ServerFrame (); // server frame
	if ( host.type != HOST_DEDICATED )
		Host_ClientFrame (); // client frame

	HTTP_Run();

	host.framecount++;
}