mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
Remove the vector component skip code from param searches.
Local defs no longer contain the vector comonents.
This commit is contained in:
parent
b49d90e769
commit
3b8a3f8302
1 changed files with 2 additions and 3 deletions
|
@ -492,8 +492,6 @@ PR_Get_Param_Def (progs_t *pr, dfunction_t *func, unsigned parm)
|
|||
ddef = &pr->local_defs[aux_func->local_defs + param_offs + i];
|
||||
if (!parm--)
|
||||
break;
|
||||
if (ddef->type == ev_vector)
|
||||
i += 3; // skip over component defs
|
||||
}
|
||||
return ddef;
|
||||
}
|
||||
|
@ -1041,7 +1039,8 @@ ED_Print (progs_t *pr, edict_t *ed)
|
|||
if (!d->s_name) // null field def (probably 1st)
|
||||
continue;
|
||||
name = PR_GetString (pr, d->s_name);
|
||||
if (name[strlen (name) - 2] == '_')
|
||||
if (name[strlen (name) - 2] == '_'
|
||||
&& strchr ("xyz", name[strlen (name) -1]))
|
||||
continue; // skip _x, _y, _z vars
|
||||
|
||||
v = ed->v + d->ofs;
|
||||
|
|
Loading…
Reference in a new issue