Merge pull request #470 from Sx50/master

fix
This commit is contained in:
LightCat 2018-05-25 14:45:15 +02:00 committed by GitHub
commit 8175b52316
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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