]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sys_win.c
com_list: Actually initialize a list to point to itself...
[xonotic/darkplaces.git] / sys_win.c
index 34609b0d1c4abfc7cd667c7f0e2f25f0d83d3763..8ae3bbe9d239a791189e0a74d078917c33941b09 100644 (file)
--- 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)
                {
@@ -395,7 +386,7 @@ int main (int argc, const char* argv[])
 }
 #endif
 
-qboolean sys_supportsdlgetticks = false;
+qbool sys_supportsdlgetticks = false;
 unsigned int Sys_SDL_GetTicks (void)
 {
        Sys_Error("Called Sys_SDL_GetTicks on non-SDL target");