ed_print fix

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1075 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
TimeServ 2005-06-04 17:38:32 +00:00
parent d0bf1e327c
commit 581603da12

View file

@ -856,7 +856,8 @@ void ED_Print (progfuncs_t *progfuncs, struct edict_s *ed)
{
d = &field[i];
name = d->name;
if (name[strlen(name)-2] == '_')
l = strlen(name);
if (l >= 2 && name[l-2] == '_')
continue; // skip _x, _y, _z vars
v = (int *)((char *)edvars(ed) + d->ofs*4);