summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorMichael Smith <mikesmiffy128@gmail.com>2022-05-03 23:24:39 +0100
committerMichael Smith <mikesmiffy128@gmail.com>2022-05-03 23:24:39 +0100
commit76ea6196c62d93c7a6c568600d9e4464cf3c5ca9 (patch)
tree2f3b3b32f53bdec251164290fbfd1625c1ac0172 /src
parent6d0db0d5bee0201b732149616a691827367cfb35 (diff)
Woops, go ahead and delete that testing code
Diffstat (limited to 'src')
-rw-r--r--src/engineapi.c20
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));
}
}