mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-31 13:10:34 +00:00
[gamecode] Use PR_SetupParameters for rua called builtins
It's a bit heavy-handed as it sets all the param pointers, but simple (no varargs) functions are working nicely in Ruamoko.
This commit is contained in:
parent
9fc8f14be6
commit
b663fecd4e
1 changed files with 3 additions and 0 deletions
|
@ -439,6 +439,9 @@ PR_CallFunction (progs_t *pr, pr_func_t fnum, pr_type_t *return_ptr)
|
|||
f = pr->function_table + fnum;
|
||||
if (f->first_statement < 0) {
|
||||
// negative statements are built in functions
|
||||
if (pr->progs->version == PROG_VERSION) {
|
||||
PR_SetupParams (pr, 0, 0);
|
||||
}
|
||||
if (pr->pr_trace && !pr->debug_handler) {
|
||||
Sys_Printf ("Calling builtin %s @ %p\n",
|
||||
PR_GetString (pr, f->descriptor->name), f->func);
|
||||
|
|
Loading…
Reference in a new issue