diff options
| author | Vincent-Michael <Vincent_Michael@gmx.de> | 2014-09-06 03:12:51 +0200 |
|---|---|---|
| committer | Vincent-Michael <Vincent_Michael@gmx.de> | 2014-09-06 03:12:51 +0200 |
| commit | 80fe88337e3411122763dcc345a2f00060e33e73 (patch) | |
| tree | 984d6efcc84458c08ecffa83ae5954c7e583bd77 | |
| parent | 76f1d5f22153ea323ef42f481f6958f9cfb370b9 (diff) | |
Core: Fix git fail -.-
| -rw-r--r-- | src/server/game/Entities/Player/Player.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/server/game/Entities/Player/Player.cpp b/src/server/game/Entities/Player/Player.cpp index d7a9fb130f2..0edc84a9796 100644 --- a/src/server/game/Entities/Player/Player.cpp +++ b/src/server/game/Entities/Player/Player.cpp @@ -5884,16 +5884,16 @@ float Player::OCTRegenMPPerSpirit() return regen; } -void Player::ApplyRatingMod(CombatRating cr, int32 value, bool apply) +void Player::ApplyRatingMod(CombatRating combatRating, int32 value, bool apply) { - float oldRating = m_baseRatingValue[cr]; - m_baseRatingValue[cr] += (apply ? value : -value); + float oldRating = m_baseRatingValue[combatRating]; + m_baseRatingValue[combatRating] += (apply ? value : -value); // explicit affected values - float const mult = GetRatingMultiplier(cr); - float const oldVal = oldRating * mult; - float const newVal = m_baseRatingValue[cr] * mult; - switch (cr) + float const multiplier = GetRatingMultiplier(combatRating); + float const oldVal = oldRating * multiplier; + float const newVal = m_baseRatingValue[combatRating] * multiplier; + switch (combatRating) { case CR_HASTE_MELEE: ApplyAttackTimePercentMod(BASE_ATTACK, oldVal, false); @@ -5913,7 +5913,7 @@ void Player::ApplyRatingMod(CombatRating cr, int32 value, bool apply) break; } - UpdateRating(cr); + UpdateRating(combatRating); } void Player::UpdateRating(CombatRating cr) |
