mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
Make nq-* -dedicated work. :)
This commit is contained in:
parent
fcaa687d56
commit
8c3f799282
2 changed files with 8 additions and 6 deletions
|
@ -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) {
|
||||||
|
// get new key events
|
||||||
IN_SendKeyEvents ();
|
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 ();
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue