mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2024-11-10 07:21:58 +00:00
sys_sdl_unix.c, sys_sdl_win.c (Sys_ConsoleInput): Moved isDedicated check to...
host.c (Host_GetConsoleCommands): ... here, where it should be. git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@520 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
fa69c2b10f
commit
870b40f7aa
3 changed files with 3 additions and 6 deletions
|
@ -600,6 +600,9 @@ void Host_GetConsoleCommands (void)
|
|||
{
|
||||
const char *cmd;
|
||||
|
||||
if (!isDedicated)
|
||||
return; // no stdin necessary in graphical mode
|
||||
|
||||
while (1)
|
||||
{
|
||||
cmd = Sys_ConsoleInput ();
|
||||
|
|
|
@ -210,9 +210,6 @@ const char *Sys_ConsoleInput (void)
|
|||
fd_set set;
|
||||
struct timeval timeout;
|
||||
|
||||
if (!isDedicated)
|
||||
return NULL; // no stdin necessary in graphical mode
|
||||
|
||||
FD_ZERO (&set);
|
||||
FD_SET (0, &set); // stdin
|
||||
timeout.tv_sec = 0;
|
||||
|
|
|
@ -285,9 +285,6 @@ const char *Sys_ConsoleInput (void)
|
|||
int ch;
|
||||
DWORD dummy, numread, numevents;
|
||||
|
||||
if (!isDedicated)
|
||||
return NULL;
|
||||
|
||||
for ( ;; )
|
||||
{
|
||||
if (GetNumberOfConsoleInputEvents(hinput, &numevents) == 0)
|
||||
|
|
Loading…
Reference in a new issue