* Correct calculation of ammo DPS
--HG-- branch : trunk
This commit is contained in:
1 parent
378a9e9385
commit
383e22448d
1 file changed
+1
-1
+1
-1
@@ -7633,7 +7633,7 @@ void Player::_ApplyAmmoBonuses()
|
||||
if( !ammo_proto || ammo_proto->Class!=ITEM_CLASS_PROJECTILE || !CheckAmmoCompatibility(ammo_proto))
|
||||
currentAmmoDPS = 0.0f;
|
||||
else
|
||||
currentAmmoDPS = ammo_proto->Damage[0].DamageMin;
|
||||
currentAmmoDPS = ( ammo_proto->Damage[0].DamageMin + ammo_proto->Damage[0].DamageMax ) / 2;
|
||||
|
||||
if(currentAmmoDPS == GetAmmoDPS())
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user