diff --git a/Source/the_twilight_abyss/RealTimeCombat/RealTimeCombat.cpp b/Source/the_twilight_abyss/RealTimeCombat/RealTimeCombat.cpp index 8a18400..4242df1 100644 --- a/Source/the_twilight_abyss/RealTimeCombat/RealTimeCombat.cpp +++ b/Source/the_twilight_abyss/RealTimeCombat/RealTimeCombat.cpp @@ -308,12 +308,12 @@ bool ARealTimeCombat::HitEnemy() const CollisionParams.AddIgnoredActor(PlayerActor); if (GetWorld()->LineTraceSingleByChannel(HitResult, Start, End, ECC_Pawn, CollisionParams)) { - DrawDebugLine(GetWorld(), Start, End, HitResult.bBlockingHit ? FColor::Green : FColor::Red, false, 5.0f, 0, 10.0f); + DrawDebugLine(GetWorld(), Start, End, FColor::Green, false, 5.0f, 0, 10.0f); if (HitResult.GetActor() == EnemyActor) { return true; } } - DrawDebugLine(GetWorld(), Start, End, HitResult.bBlockingHit ? FColor::Green : FColor::Red, false, 5.0f, 0, 10.0f); + DrawDebugLine(GetWorld(), Start, End, FColor::Red, false, 5.0f, 0, 10.0f); return false; }