git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@13093
d7cf8633-e32d-0410-b094-
e92efae38249
for ( ;; )
{
if (!GetNumberOfConsoleInputEvents (hinput, &numevents))
for ( ;; )
{
if (!GetNumberOfConsoleInputEvents (hinput, &numevents))
- {
- cls.state = ca_disconnected;
Sys_Error ("Error getting # of console events (error code %x)", (unsigned int)GetLastError());
Sys_Error ("Error getting # of console events (error code %x)", (unsigned int)GetLastError());
if (numevents <= 0)
break;
if (!ReadConsoleInput(hinput, recs, 1, &numread))
if (numevents <= 0)
break;
if (!ReadConsoleInput(hinput, recs, 1, &numread))
- {
- cls.state = ca_disconnected;
Sys_Error ("Error reading console input (error code %x)", (unsigned int)GetLastError());
Sys_Error ("Error reading console input (error code %x)", (unsigned int)GetLastError());
- {
- cls.state = ca_disconnected;
Sys_Error ("Couldn't read console input (error code %x)", (unsigned int)GetLastError());
Sys_Error ("Couldn't read console input (error code %x)", (unsigned int)GetLastError());
if (recs[0].EventType == KEY_EVENT)
{
if (recs[0].EventType == KEY_EVENT)
{