From 3431d2f5a94707cdb6b0aa75fb83c1bf6800db82 Mon Sep 17 00:00:00 2001 From: BenCat07 Date: Fri, 25 May 2018 23:31:36 +0200 Subject: [PATCH] lagbot mode fix --- include/entitycache.hpp | 2 ++ src/entitycache.cpp | 3 --- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/include/entitycache.hpp b/include/entitycache.hpp index 01d437f5..fcb613cc 100644 --- a/include/entitycache.hpp +++ b/include/entitycache.hpp @@ -22,6 +22,8 @@ #include "playerresource.h" #include "globals.h" #include "classinfo.hpp" +#include "tf2.gen.hpp" +#include "client_class.h" struct matrix3x4_t; diff --git a/src/entitycache.cpp b/src/entitycache.cpp index f4cc6b03..4383085a 100644 --- a/src/entitycache.cpp +++ b/src/entitycache.cpp @@ -139,8 +139,6 @@ CachedEntity array[MAX_ENTITIES]{}; void Update() { - PROF_SECTION(CACHE_UPDATE) - { max = g_IEntityList->GetHighestEntityIndex(); if (max >= MAX_ENTITIES) max = MAX_ENTITIES - 1; @@ -148,7 +146,6 @@ void Update() { array[i].Update(); } - } } void Invalidate()