trivial: reduce diff between NQ/QW Host_Frame functions

They are still quite different, but remove a few cosmetic points of
difference so it's easier to see the real differences.

NQ/host.c::_Host_Frame() vs. QW/client/cl_main.c::Host_Frame()
This commit is contained in:
Tyrann 2012-01-05 11:48:26 +10:30
parent 61ef48e728
commit f566f01598
2 changed files with 6 additions and 5 deletions

View File

@ -809,7 +809,7 @@ Host_Init(quakeparms_t *parms)
host_parms = *parms;
if (parms->memsize < minimum_memory)
Sys_Error("Only %4.1f megs of memory available, can't execute game",
Sys_Error("Only %4.1f megs of memory reported, can't execute game",
parms->memsize / (float)0x100000);
com_argc = parms->argc;

View File

@ -1330,8 +1330,9 @@ Host_Frame(float time)
int pass1, pass2, pass3;
float fps;
/* something bad happened, or the server disconnected */
if (setjmp(host_abort))
return; // something bad happened, or the server disconnected
return;
// decide the simulation time
realtime += time;
@ -1354,10 +1355,10 @@ Host_Frame(float time)
// get new key events
Sys_SendKeyEvents();
// allow mice or other external controllers to add commands
/* allow mice or other external controllers to add commands */
IN_Commands();
// process console commands
/* process console commands */
Cbuf_Execute();
// fetch results from server
@ -1392,7 +1393,7 @@ Host_Frame(float time)
if (host_speeds.value)
time2 = Sys_DoubleTime();
// update audio
/* update audio */
if (cls.state == ca_active) {
S_Update(r_origin, vpn, vright, vup);
CL_DecayLights();