From: cloudwalk Date: Thu, 4 Feb 2021 13:48:10 +0000 (+0000) Subject: sys_win: Remove pointless cls.state sets since we're calling Sys_Error immediately... X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=d21ad272ad2c10c98373065fe37bdf91008288e4;p=xonotic%2Fdarkplaces.git sys_win: Remove pointless cls.state sets since we're calling Sys_Error immediately after git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@13093 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/sys_win.c b/sys_win.c index ee27f1eb..466f20da 100644 --- a/sys_win.c +++ b/sys_win.c @@ -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) {