mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-17 22:50:51 +00:00
make sure the cbuf is usable when text gets added
This commit is contained in:
parent
37fa93e8e5
commit
0421c33b85
1 changed files with 4 additions and 0 deletions
|
@ -156,12 +156,16 @@ Cbuf_PushStack (cbuf_interpreter_t *interp)
|
|||
void
|
||||
Cbuf_AddText (cbuf_t *cbuf, const char *text)
|
||||
{
|
||||
if (cbuf->state == CBUF_STATE_JUNK)
|
||||
cbuf->state = CBUF_STATE_NORMAL;
|
||||
cbuf->interpreter->add (cbuf, text);
|
||||
}
|
||||
|
||||
void
|
||||
Cbuf_InsertText (cbuf_t *cbuf, const char *text)
|
||||
{
|
||||
if (cbuf->state == CBUF_STATE_JUNK)
|
||||
cbuf->state = CBUF_STATE_NORMAL;
|
||||
cbuf->interpreter->insert (cbuf, text);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue