lagbot mode fix
This commit is contained in:
parent
262a7a0358
commit
3431d2f5a9
@ -22,6 +22,8 @@
|
|||||||
#include "playerresource.h"
|
#include "playerresource.h"
|
||||||
#include "globals.h"
|
#include "globals.h"
|
||||||
#include "classinfo.hpp"
|
#include "classinfo.hpp"
|
||||||
|
#include "tf2.gen.hpp"
|
||||||
|
#include "client_class.h"
|
||||||
|
|
||||||
struct matrix3x4_t;
|
struct matrix3x4_t;
|
||||||
|
|
||||||
|
@ -139,8 +139,6 @@ CachedEntity array[MAX_ENTITIES]{};
|
|||||||
|
|
||||||
void Update()
|
void Update()
|
||||||
{
|
{
|
||||||
PROF_SECTION(CACHE_UPDATE)
|
|
||||||
{
|
|
||||||
max = g_IEntityList->GetHighestEntityIndex();
|
max = g_IEntityList->GetHighestEntityIndex();
|
||||||
if (max >= MAX_ENTITIES)
|
if (max >= MAX_ENTITIES)
|
||||||
max = MAX_ENTITIES - 1;
|
max = MAX_ENTITIES - 1;
|
||||||
@ -148,7 +146,6 @@ void Update()
|
|||||||
{
|
{
|
||||||
array[i].Update();
|
array[i].Update();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Invalidate()
|
void Invalidate()
|
||||||
|
Reference in New Issue
Block a user