]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
cl_demo: Use Cbuf_InsertText to start a map for a demo
authorCloudwalk <cloudwalk009@gmail.com>
Fri, 21 Aug 2020 11:21:03 +0000 (07:21 -0400)
committerCloudwalk <cloudwalk009@gmail.com>
Fri, 21 Aug 2020 11:21:03 +0000 (07:21 -0400)
cl_demo.c

index 5acbaa4eec825a211ded2e1b1da4a063cf7007b6..e7dcc7e09e6b5a0dd49adda6759a809a072bbbe5 100644 (file)
--- a/cl_demo.c
+++ b/cl_demo.c
@@ -382,7 +382,7 @@ void CL_Record_f(cmd_state_t *cmd)
 
        // start the map up
        if (c > 2)
-               Cmd_ExecuteString ( cmd, va(vabuf, sizeof(vabuf), "map %s", Cmd_Argv(cmd, 2)), src_command, false);
+               Cbuf_InsertText( cmd, va(vabuf, sizeof(vabuf), "map %s", Cmd_Argv(cmd, 2)));
 
        // open the demo file
        Con_Printf("recording to %s.\n", name);