Permalink
Browse files

Fix error

  • Loading branch information...
Bara committed Oct 23, 2018
1 parent 935d8c6 commit b3fa6f7c60bc5cb4fbe9da6cd1d4d158b023d43d
Showing with 3 additions and 2 deletions.
  1. +3 −2 addons/sourcemod/scripting/ttt/ttt_missiles.sp
@@ -526,13 +526,14 @@ public void MissileThink(const char[] output, int caller, int activator, float d
Handle hTrace = TR_TraceRayFilterEx(fNadePos, fEnemyPos, MASK_PLAYERSOLID, RayType_Infinite, TR_DontHitSelf, caller);
int iTarget = -1;
float fDistance = 0.0;
// float fDistance = 0.0;
if (TR_DidHit(hTrace))
{
iTarget = TR_GetEntityIndex(hTrace);
fDistance = GetVectorDistance(fNadePos, fEnemyPos);
// fDistance = GetVectorDistance(fNadePos, fEnemyPos);
// PrintToChatAll("Target: %d, Distance: %f", iClosestEnemy, fDistance);
if (iTarget == iClosestEnemy)

0 comments on commit b3fa6f7

Please sign in to comment.