mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-05-30 00:10:40 +00:00
fix E_POINTER and E_FUNCTION
This commit is contained in:
parent
31112bfc42
commit
84ea81a770
3 changed files with 12 additions and 12 deletions
|
@ -192,9 +192,9 @@ sv_pr_touch (edict_t *self, edict_t *other)
|
|||
*sv_globals.self = EDICT_TO_PROG (&sv_pr_state, self);
|
||||
*sv_globals.other = EDICT_TO_PROG (&sv_pr_state, other);
|
||||
if ((this = sv_pr_state.fields.this) != -1) {
|
||||
P_INT (&sv_pr_state, 0) = E_var (self, this, integer);
|
||||
P_INT (&sv_pr_state, 0) = E_POINTER (self, this);
|
||||
P_INT (&sv_pr_state, 1) = 0;
|
||||
P_INT (&sv_pr_state, 2) = E_var (other, this, integer);
|
||||
P_INT (&sv_pr_state, 2) = E_POINTER (other, this);
|
||||
}
|
||||
PR_ExecuteProgram (&sv_pr_state, SVfunc (self, touch));
|
||||
}
|
||||
|
@ -212,7 +212,7 @@ sv_pr_think (edict_t *self)
|
|||
*sv_globals.self = EDICT_TO_PROG (&sv_pr_state, self);
|
||||
*sv_globals.other = 0;
|
||||
if ((this = sv_pr_state.fields.this) != -1) {
|
||||
P_INT (&sv_pr_state, 0) = E_var (self, this, integer);
|
||||
P_INT (&sv_pr_state, 0) = E_POINTER (self, this);
|
||||
P_INT (&sv_pr_state, 1) = 0;
|
||||
P_INT (&sv_pr_state, 2) = 0;
|
||||
}
|
||||
|
@ -227,9 +227,9 @@ sv_pr_blocked (edict_t *self, edict_t *other)
|
|||
*sv_globals.self = EDICT_TO_PROG (&sv_pr_state, self);
|
||||
*sv_globals.other = EDICT_TO_PROG (&sv_pr_state, other);
|
||||
if ((this = sv_pr_state.fields.this) != -1) {
|
||||
P_INT (&sv_pr_state, 0) = E_var (self, this, integer);
|
||||
P_INT (&sv_pr_state, 0) = E_POINTER (self, this);
|
||||
P_INT (&sv_pr_state, 1) = 0;
|
||||
P_INT (&sv_pr_state, 2) = E_var (other, this, integer);
|
||||
P_INT (&sv_pr_state, 2) = E_POINTER (other, this);
|
||||
}
|
||||
PR_ExecuteProgram (&sv_pr_state, SVfunc (self, blocked));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue