mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-21 18:01:15 +00:00
don't ignore the size parameter to newstr
This is an imperfect revision of history.
This commit is contained in:
parent
5ef382d2a7
commit
13029212a8
1 changed files with 5 additions and 0 deletions
|
@ -255,6 +255,11 @@ PF_newstr (progs_t * pr)
|
|||
|
||||
dstring_copystr (dstr, s);
|
||||
|
||||
if (pr->pr_argc > 1 && P_FLOAT (pr, 1) > dstr->size) {
|
||||
dstr->size = P_FLOAT (pr, 1);
|
||||
dstring_adjust (dstr);
|
||||
}
|
||||
|
||||
R_STRING (pr) = i;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue