X-Git-Url: http://git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=sys_win.c;h=8ae3bbe9d239a791189e0a74d078917c33941b09;hp=ee27f1eb0dbd1d22c0f8a4dfb34c0ce10ef7abde;hb=19f27381a167c3713ff0417fd96651bb0469d2a6;hpb=0a05c446ba26bd5897645a37ceec8646c5bc93eb diff --git a/sys_win.c b/sys_win.c index ee27f1eb..8ae3bbe9 100644 --- a/sys_win.c +++ b/sys_win.c @@ -83,7 +83,7 @@ void Sys_Error (const char *error, ...) if (!in_sys_error1) { in_sys_error1 = 1; - Host_Shutdown (); + //Host_Shutdown (); } // shut down QHOST hooks if necessary @@ -135,25 +135,16 @@ char *Sys_ConsoleInput (void) for ( ;; ) { if (!GetNumberOfConsoleInputEvents (hinput, &numevents)) - { - cls.state = ca_disconnected; Sys_Error ("Error getting # of console events (error code %x)", (unsigned int)GetLastError()); - } 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()); - } if (numread != 1) - { - cls.state = ca_disconnected; Sys_Error ("Couldn't read console input (error code %x)", (unsigned int)GetLastError()); - } if (recs[0].EventType == KEY_EVENT) {