X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=cl_demo.c;h=b3ac4e92c97c04381246c67d7a7d8620aed434b9;hp=2ab796bcd22418cf891383062d83ed8969f69d2a;hb=cb872df2ca589d4b30c733dc239986dfd64f0c12;hpb=3a16e432521bf1f1bb796a76c3819a5334b59b9b diff --git a/cl_demo.c b/cl_demo.c index 2ab796bc..b3ac4e92 100644 --- 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 @@ -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));