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:
Ozkan Sezer 2011-12-15 15:51:28 +00:00
parent fa69c2b10f
commit 870b40f7aa
3 changed files with 3 additions and 6 deletions

View file

@ -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 ();

View file

@ -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;

View file

@ -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)