* Correct calculation of ammo DPS

--HG--
branch : trunk
This commit is contained in:
Machiavelli
2009-08-21 15:47:56 +02:00
parent 378a9e9385
commit 383e22448d
+1 -1
View File
@@ -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;