This commit is contained in:
Lighty 2018-05-25 14:39:46 +02:00
parent 2188943bde
commit 6cd11db2bc

View File

@ -459,7 +459,7 @@ bool IsTargetStateGood(CachedEntity *entity)
PROF_SECTION(PT_aimbot_targetstatecheck);
// Checks for Players
if (entity->m_Type == ENTITY_PLAYER)
if (entity->m_Type() == ENTITY_PLAYER)
{
// Local player check
if (entity == LOCAL_E)
@ -583,7 +583,7 @@ bool IsTargetStateGood(CachedEntity *entity)
// Check for buildings
}
else if (entity->m_Type == ENTITY_BUILDING)
else if (entity->m_Type() == ENTITY_BUILDING)
{
// Enabled check
if (!(buildings_other || buildings_sentry))
@ -848,7 +848,7 @@ const Vector &PredictEntity(CachedEntity *entity)
return result;
// Players
if ((entity->m_Type == ENTITY_PLAYER))
if ((entity->m_Type() == ENTITY_PLAYER))
{
// If using projectiles, predict a vector
if (projectile_mode &&
@ -875,7 +875,7 @@ const Vector &PredictEntity(CachedEntity *entity)
}
// Buildings
}
else if (entity->m_Type == ENTITY_BUILDING)
else if (entity->m_Type() == ENTITY_BUILDING)
{
result = GetBuildingPosition(entity);
// Other