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
// will flood out
// get new key events
IN_SendKeyEvents ();
if (cls.state != ca_dedicated) {
// get new key events
IN_SendKeyEvents ();
// allow mice or other external controllers to add commands
IN_Commands ();
// allow mice or other external controllers to add commands
IN_Commands ();
}
// process console commands
Cbuf_Execute ();

View File

@ -176,7 +176,7 @@ main (int c, const char *v[])
double time, oldtime, newtime;
quakeparms_t parms;
extern int vcrFile;
extern VFile *vcrFile;
extern int recording;
int j;
@ -221,7 +221,7 @@ main (int c, const char *v[])
time = newtime - oldtime;
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);
continue; // not time to run a server only tic
// yet