mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
this /should/ fix the windows server input problems. based on Timmmm's fix.
This commit is contained in:
parent
d63cde4103
commit
341b6a1d68
1 changed files with 3 additions and 2 deletions
|
@ -497,6 +497,7 @@ int
|
|||
Sys_CheckInput (int idle, int net_socket)
|
||||
{
|
||||
fd_set fdset;
|
||||
int res;
|
||||
struct timeval _timeout;
|
||||
struct timeval *timeout = 0;
|
||||
|
||||
|
@ -534,8 +535,8 @@ Sys_CheckInput (int idle, int net_socket)
|
|||
if (!idle || !sys_dead_sleep->int_val)
|
||||
timeout = &_timeout;
|
||||
|
||||
if (select (net_socket + 1, &fdset, NULL, NULL, timeout) == -1
|
||||
&& errno != EINTR)
|
||||
res = select (net_socket + 1, &fdset, NULL, NULL, timeout);
|
||||
if (res == 0 || res == -1)
|
||||
return 0;
|
||||
stdin_ready = FD_ISSET (0, &fdset);
|
||||
return 1;
|
||||
|
|
Loading…
Reference in a new issue