From b22244139ceb5d20dc60fcce6ed730df908d034b Mon Sep 17 00:00:00 2001 From: Roman Chistokhodov Date: Tue, 7 Nov 2023 21:44:19 +0300 Subject: [PATCH] Opfor grunts shouldn't ignore glass when checking for range attack. Fix #402 (#404) --- dlls/gearbox/fgrunt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/gearbox/fgrunt.cpp b/dlls/gearbox/fgrunt.cpp index 841e11b5..21f1e889 100644 --- a/dlls/gearbox/fgrunt.cpp +++ b/dlls/gearbox/fgrunt.cpp @@ -1543,7 +1543,7 @@ BOOL CHFGrunt :: CheckRangeAttack1 ( float flDot, float flDist ) Vector vecSrc = GetGunPosition(); // verify that a bullet fired from the gun will hit the enemy before the world. - UTIL_TraceLine( vecSrc, m_hEnemy->BodyTarget(vecSrc), ignore_monsters, ignore_glass, ENT(pev), &tr); + UTIL_TraceLine( vecSrc, m_hEnemy->BodyTarget(vecSrc), ignore_monsters, ENT(pev), &tr); if ( tr.flFraction == 1.0 ) {