mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
another jump prediction optimisation
This commit is contained in:
parent
21686adf10
commit
3c06cd5620
1 changed files with 3 additions and 3 deletions
|
@ -108,11 +108,11 @@ Cbuf_AddText (const char *text)
|
|||
|
||||
l = strlen (text);
|
||||
|
||||
if (cmd_text.cursize + l >= cmd_text.maxsize) {
|
||||
Sys_Printf ("Cbuf_AddText: overflow\n");
|
||||
if (cmd_text.cursize + l < cmd_text.maxsize) {
|
||||
SZ_Write (&cmd_text, text, l + 1);
|
||||
return;
|
||||
}
|
||||
SZ_Write (&cmd_text, text, strlen (text));
|
||||
Sys_Printf ("Cbuf_AddText: overflow\n");
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue