diff options
| author | Machiavelli <none@none> | 2009-08-21 15:47:56 +0200 |
|---|---|---|
| committer | Machiavelli <none@none> | 2009-08-21 15:47:56 +0200 |
| commit | 383e22448dcddf92b93698a89290ea3f7d43d43a (patch) | |
| tree | f50c12f93a7ab0c35bcbcc268e63b2ae00d0696b /src | |
| parent | 378a9e9385a6c863b9c8e5dbb49b093608c8db3c (diff) | |
* Correct calculation of ammo DPS
--HG--
branch : trunk
Diffstat (limited to 'src')
| -rw-r--r-- | src/game/Player.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; |
