mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
Fix: only check for rate of fire for weapons
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8628 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -2068,6 +2068,9 @@ INT16 BaseAPsToShootOrStab( INT16 bAPs, INT16 bAimSkill, OBJECTTYPE * pObj, SOLD
|
||||
|
||||
//CHRISL: Resolves a problem with stackable weapons not using attachments like Reflex sight. Found by Mugsy
|
||||
//if (ItemSlotLimit(pObj, STACK_SIZE_LIMIT) == 1)//NOT STACKABLE!
|
||||
|
||||
// be sure to only check weapons
|
||||
if ( Item[pObj->usItem].usItemClass & ( IC_WEAPON | IC_PUNCH ) )
|
||||
{
|
||||
rof += GetRateOfFireBonus(pObj);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user