Make nq-* -dedicated work. :)

This commit is contained in:
Adam Olsen 2001-07-16 23:36:43 +00:00
parent fcaa687d56
commit 8c3f799282
2 changed files with 8 additions and 6 deletions

View File

@ -658,11 +658,13 @@ _Host_Frame (float time)
return; // don't run too fast, or packets return; // don't run too fast, or packets
// will flood out // will flood out
// get new key events if (cls.state != ca_dedicated) {
IN_SendKeyEvents (); // get new key events
IN_SendKeyEvents ();
// allow mice or other external controllers to add commands // allow mice or other external controllers to add commands
IN_Commands (); IN_Commands ();
}
// process console commands // process console commands
Cbuf_Execute (); Cbuf_Execute ();

View File

@ -176,7 +176,7 @@ main (int c, const char *v[])
double time, oldtime, newtime; double time, oldtime, newtime;
quakeparms_t parms; quakeparms_t parms;
extern int vcrFile; extern VFile *vcrFile;
extern int recording; extern int recording;
int j; int j;
@ -221,7 +221,7 @@ main (int c, const char *v[])
time = newtime - oldtime; time = newtime - oldtime;
if (cls.state == ca_dedicated) { // play vcrfiles at max speed if (cls.state == ca_dedicated) { // play vcrfiles at max speed
if (time < sys_ticrate->value && (vcrFile == -1 || recording)) { if (time < sys_ticrate->value && (!vcrFile || recording)) {
usleep (1); usleep (1);
continue; // not time to run a server only tic continue; // not time to run a server only tic
// yet // yet