]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cl_input.c
fixed very annoying '5 second timeout' bug in Host_ShutdownServer (the local client...
[xonotic/darkplaces.git] / cl_input.c
index 2948b61af2c918612e0ec54f4bb7b29a05267223..e3d964d8a357ae61b40a62dda0a10ffbdaafc759 100644 (file)
@@ -77,7 +77,7 @@ void KeyDown (kbutton_t *b)
                b->down[1] = k;
        else
        {
-               Con_Print("Three keys down for a button!\n");
+               Con_Print("Three keys down for a button!\n");
                return;
        }
 
@@ -390,7 +390,7 @@ void CL_SendMove(usercmd_t *cmd)
                for (i = 0;i < 3;i++)
                        MSG_WriteFloat (&buf, cl.viewangles[i]);
        }
-       else if (cl.protocol == PROTOCOL_DARKPLACES1 || cl.protocol == PROTOCOL_DARKPLACES4)
+       else if (cl.protocol == PROTOCOL_DARKPLACES1 || cl.protocol == PROTOCOL_DARKPLACES4 || cl.protocol == PROTOCOL_DARKPLACES5)
        {
                for (i=0 ; i<3 ; i++)
                        MSG_WritePreciseAngle (&buf, cl.viewangles[i]);
@@ -463,8 +463,9 @@ void CL_SendMove(usercmd_t *cmd)
 
        if (NetConn_SendUnreliableMessage(cls.netcon, &buf) == -1)
        {
-               Con_Printf("CL_SendMove: lost server connection\n");
+               Con_Print("CL_SendMove: lost server connection\n");
                CL_Disconnect();
+               Host_ShutdownServer(false);
        }
 }