]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cl_demo.c
added keyup function for menu qc at Black's request
[xonotic/darkplaces.git] / cl_demo.c
index 2ab796bcd22418cf891383062d83ed8969f69d2a..1e7773fb1d46b707780aa6c4c05c1a8b77af87df 100644 (file)
--- a/cl_demo.c
+++ b/cl_demo.c
@@ -46,7 +46,7 @@ Called to play the next demo in the demo loop
 */
 void CL_NextDemo (void)
 {
-       char    str[1024];
+       char    str[MAX_INPUTLINE];
 
        if (cls.demonum == -1)
                return;         // don't play demos
@@ -164,11 +164,11 @@ void CL_ReadDemoMessage(void)
                                        cls.td_starttime = realtime;
                                if (host_framecount > cls.td_startframe + 2)
                                {
-                                       cls.td_minframetime = min(cls.td_minframetime, host_realframetime);
-                                       cls.td_maxframetime = max(cls.td_maxframetime, host_realframetime);
+                                       cls.td_minframetime = min(cls.td_minframetime, cl.realframetime);
+                                       cls.td_maxframetime = max(cls.td_maxframetime, cl.realframetime);
                                }
                                else
-                                       cls.td_minframetime = cls.td_maxframetime = host_realframetime;
+                                       cls.td_minframetime = cls.td_maxframetime = cl.realframetime;
                        }
                        else if (cl.time <= cl.mtime[0])
                        {
@@ -313,7 +313,7 @@ play [demoname]
 */
 void CL_PlayDemo_f (void)
 {
-       char    name[256];
+       char    name[MAX_QPATH];
        int c;
        qboolean neg = false;
 
@@ -328,10 +328,10 @@ void CL_PlayDemo_f (void)
 
        // disconnect from server
        CL_Disconnect ();
-       Host_ShutdownServer (false);
+       Host_ShutdownServer ();
 
        // update networking ports (this is mainly just needed at startup)
-       NetConn_ClientFrame();
+       NetConn_UpdateSockets();
 
        // open the demo file
        strlcpy (name, Cmd_Argv(1), sizeof (name));