From 76ea6196c62d93c7a6c568600d9e4464cf3c5ca9 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Tue, 3 May 2022 23:24:39 +0100 Subject: Woops, go ahead and delete that testing code --- src/engineapi.c | 20 +------------------- 1 file changed, 1 insertion(+), 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)); } } -- cgit v1.2.3