mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-18 06:51:47 +00:00
attempt to fix the win32 server input
This commit is contained in:
parent
4e85063b52
commit
612f5c2a31
1 changed files with 6 additions and 1 deletions
|
@ -466,6 +466,11 @@ Sys_CheckInput (int idle, int net_socket)
|
||||||
|
|
||||||
_timeout.tv_sec = 0;
|
_timeout.tv_sec = 0;
|
||||||
_timeout.tv_usec = 100;
|
_timeout.tv_usec = 100;
|
||||||
|
timeout = &_timeout;
|
||||||
|
if (_kbhit ()) {
|
||||||
|
stdin_ready = 1;
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
#else
|
#else
|
||||||
_timeout.tv_sec = 0;
|
_timeout.tv_sec = 0;
|
||||||
_timeout.tv_usec = 10000;
|
_timeout.tv_usec = 10000;
|
||||||
|
@ -478,7 +483,7 @@ Sys_CheckInput (int idle, int net_socket)
|
||||||
if (do_stdin)
|
if (do_stdin)
|
||||||
FD_SET (0, &fdset);
|
FD_SET (0, &fdset);
|
||||||
FD_SET (net_socket, &fdset);
|
FD_SET (net_socket, &fdset);
|
||||||
|
printf ("%d\n", do_stdin);
|
||||||
if (!idle || !sys_dead_sleep->int_val)
|
if (!idle || !sys_dead_sleep->int_val)
|
||||||
timeout = &_timeout;
|
timeout = &_timeout;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue