diff options
author | Michael Smith <mikesmiffy128@gmail.com> | 2022-05-03 23:24:39 +0100 |
---|---|---|
committer | Michael Smith <mikesmiffy128@gmail.com> | 2022-05-03 23:24:39 +0100 |
commit | 76ea6196c62d93c7a6c568600d9e4464cf3c5ca9 (patch) | |
tree | 2f3b3b32f53bdec251164290fbfd1625c1ac0172 | |
parent | 6d0db0d5bee0201b732149616a691827367cfb35 (diff) |
Woops, go ahead and delete that testing code
-rw-r--r-- | src/engineapi.c | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/src/engineapi.c b/src/engineapi.c index 54b9128..6ba178f 100644 --- a/src/engineapi.c +++ b/src/engineapi.c @@ -87,25 +87,7 @@ void engineapi_init(void) { if (has_vtidx_GetAllServerClasses && has_sz_SendProp && has_off_SP_varname && has_off_SP_offset) { - struct ServerClass *svclass = VCALL(srvdll, GetAllServerClasses); - initentprops(svclass); -#if 0 // just keeping a note of this testing code for now, might delete later - for (; svclass; svclass = svclass->next) { - struct SendTable *st = svclass->table; - for (struct SendProp *p = st->props; (char *)p - - (char *)st->props < st->nprops * sz_SendProp; - p = mem_offset(p, sz_SendProp)) { - if (!strcmp(*(const char **)mem_offset(p, off_SP_varname), - "m_angEyeAngles[0]")) { - con_msg("%s\n", svclass->name); - con_msg(" %s\n", st->tablename); - con_msg(" %s = %d\n", *(const char **)mem_offset(p, - off_SP_varname), *(int *)mem_offset(p, off_SP_offset)); - return; - } - } - } -#endif + initentprops(VCALL(srvdll, GetAllServerClasses)); } } |