]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cmd.h
cbuf: recycle node after it executes, clear commands on Host_Error()
[xonotic/darkplaces.git] / cmd.h
diff --git a/cmd.h b/cmd.h
index 99241fcf753618591fa61052398d2280119702d4..b3502919ab766fb74a1ac6989e72f7bea130e2a3 100644 (file)
--- a/cmd.h
+++ b/cmd.h
@@ -199,6 +199,8 @@ void Cbuf_InsertText (cmd_state_t *cmd, const char *text);
 void Cbuf_Execute (cmd_buf_t *cbuf);
 /*! Performs deferred commands and runs Cbuf_Execute, called by Host_Frame */
 void Cbuf_Frame (cmd_buf_t *cbuf);
+/// Clears all command buffers
+void Cbuf_Clear(cmd_buf_t *cbuf);
 
 //===========================================================================