diff options
| author | megamage <none@none> | 2009-05-04 17:32:39 -0500 |
|---|---|---|
| committer | megamage <none@none> | 2009-05-04 17:32:39 -0500 |
| commit | 92e393deb8ce5c573e31ce98ac8901a2ad4e8089 (patch) | |
| tree | 964534c07d507f20f641495e51a961767392531a /src/game/SpellAuras.cpp | |
| parent | 0ad353f147b65e7b18e2dde653a7d9919e9ddbec (diff) | |
[7761] GuildBankTabPrice vector is replaced by an array. Author: zhenya
Arrays are significantly faster.
--HG--
branch : trunk
Diffstat (limited to 'src/game/SpellAuras.cpp')
| -rw-r--r-- | src/game/SpellAuras.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp index b1b2e487214..b3bc24ec17b 100644 --- a/src/game/SpellAuras.cpp +++ b/src/game/SpellAuras.cpp @@ -4488,7 +4488,7 @@ void AuraEffect::HandlePeriodicDamage(bool apply, bool Real) //3 points: ${($m1+$b1*3+0.03*$AP)*6} damage over 12 secs //4 points: ${($m1+$b1*4+0.03428571*$AP)*7} damage over 14 secs //5 points: ${($m1+$b1*5+0.0375*$AP)*8} damage over 16 secs - float AP_per_combo[] = {0, 0.015f, 0.024, 0.03, 0.03428571, 0.0375}; + float AP_per_combo[6] = {0.0f, 0.015f, 0.024f, 0.03f, 0.03428571f, 0.0375f}; uint8 cp = ((Player*)caster)->GetComboPoints(); if (cp > 5) cp = 5; m_amount += int32(caster->GetTotalAttackPowerValue(BASE_ATTACK) * AP_per_combo[cp]); |
