mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-18 15:01:41 +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
|
||||
// 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 ();
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue