Skip to content

Commit 0822264

Browse files
committed
Check if firearm in IsLineOfFirePenetrationClear
1 parent acc03d7 commit 0822264

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/game/server/neo/bot/neo_bot.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1817,7 +1817,7 @@ bool CNEOBot::IsLineOfFirePenetrationClear(const trace_t &tr, const Vector &from
18171817

18181818
// Only bother with fire penetration in short distance
18191819
auto *neoWeapon = static_cast<CNEOBaseCombatWeapon *>(GetActiveWeapon());
1820-
if (!neoWeapon)
1820+
if (!neoWeapon || !(neoWeapon->GetNeoWepBits() & NEO_WEP_FIREARM))
18211821
{
18221822
return false;
18231823
}

0 commit comments

Comments
 (0)