git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12933
d7cf8633-e32d-0410-b094-
e92efae38249
* can insert data at the beginning of the text buffer
*/
current = List_Container(*cbuf->start.next, cmd_input_t, list);
* can insert data at the beginning of the text buffer
*/
current = List_Container(*cbuf->start.next, cmd_input_t, list);
+
+ // Recycle memory so using WASD doesn't cause a malloc and free
+ List_Move_Tail(¤t->list, &cbuf->free);
+
/*
* Assume we're rolling with the current command-line and
* always set this false because alias expansion or cbuf insertion
/*
* Assume we're rolling with the current command-line and
* always set this false because alias expansion or cbuf insertion
Cmd_ExecuteString (current->source, current->text, src_local, false);
}
Cmd_ExecuteString (current->source, current->text, src_local, false);
}
- // Recycle memory so using WASD doesn't cause a malloc and free
- List_Move_Tail(¤t->list, &cbuf->free);
-
current = NULL;
if (cbuf->wait)
current = NULL;
if (cbuf->wait)