From 383e22448dcddf92b93698a89290ea3f7d43d43a Mon Sep 17 00:00:00 2001 From: Machiavelli Date: Fri, 21 Aug 2009 15:47:56 +0200 Subject: * Correct calculation of ammo DPS --HG-- branch : trunk --- src/game/Player.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/game/Player.cpp b/src/game/Player.cpp index 753483100b3..c631bd270a5 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -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; -- cgit v1.2.3