mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-17 01:11:45 +00:00
[ruamoko] Set params in obj_msgSend_super only for v6p progs
In Ruamoko ISA progs, the param pointers point to the stack and generally must most be manipulated by builtins, and there is no need anyway as Ruamoko doesn't have RCALL. Fixes the mangling of .super.
This commit is contained in:
parent
cabb53e693
commit
92711e778c
1 changed files with 3 additions and 1 deletions
|
@ -1565,7 +1565,9 @@ rua_obj_msgSend_super (progs_t *pr)
|
|||
PR_GetString (pr, object_get_class_name (probj, self)),
|
||||
PR_GetString (pr, probj->selector_names[_cmd->sel_id]));
|
||||
}
|
||||
pr->pr_params[0] = pr->pr_real_params[0];
|
||||
if (pr->progs->version < PROG_VERSION) {
|
||||
pr->pr_params[0] = pr->pr_real_params[0];
|
||||
}
|
||||
P_POINTER (pr, 0) = super->self;
|
||||
PR_CallFunction (pr, imp, pr->pr_return);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue