mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-27 06:34:11 +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);
|
l = strlen (text);
|
||||||
|
|
||||||
if (cmd_text.cursize + l >= cmd_text.maxsize) {
|
if (cmd_text.cursize + l < cmd_text.maxsize) {
|
||||||
Sys_Printf ("Cbuf_AddText: overflow\n");
|
SZ_Write (&cmd_text, text, l + 1);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
SZ_Write (&cmd_text, text, strlen (text));
|
Sys_Printf ("Cbuf_AddText: overflow\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue