Skip to content

Commit 6067d4d

Browse files
committed
Check if firearm in IsLineOfFirePenetrationClear
1 parent 1935cef commit 6067d4d

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
@@ -1823,7 +1823,7 @@ bool CNEOBot::IsLineOfFirePenetrationClear(const trace_t &tr, const Vector &from
18231823

18241824
// Only bother with fire penetration in short distance
18251825
auto *neoWeapon = static_cast<CNEOBaseCombatWeapon *>(GetActiveWeapon());
1826-
if (!neoWeapon)
1826+
if (!neoWeapon || !(neoWeapon->GetNeoWepBits() & NEO_WEP_FIREARM))
18271827
{
18281828
return false;
18291829
}

0 commit comments

Comments
 (0)