Small fix

This commit is contained in:
TotallyNotElite 2018-06-12 09:21:43 +02:00
parent 62ec2a8e56
commit 39bd6543f3

View File

@ -16,6 +16,9 @@ bool drawEsp[32];
void run() void run()
{ {
#if ENABLE_VISUALS
if (!enable)
return;
for (int i = 1; i < g_IEngine->GetMaxClients(); i++) for (int i = 1; i < g_IEngine->GetMaxClients(); i++)
{ {
CachedEntity *pEntity = ENTITY(i); CachedEntity *pEntity = ENTITY(i);
@ -37,6 +40,7 @@ void run()
maxp[i] = pEntity->hitboxes.GetHitbox(0)->max; maxp[i] = pEntity->hitboxes.GetHitbox(0)->max;
drawEsp[i] = true; drawEsp[i] = true;
} }
#endif
} }
void draw() void draw()
{ {