diff options
| author | megamage <none@none> | 2009-05-06 10:35:37 -0500 |
|---|---|---|
| committer | megamage <none@none> | 2009-05-06 10:35:37 -0500 |
| commit | ac3c58a2eb0da881b5eb82ebdc36a99fa53e47f0 (patch) | |
| tree | 08a80411af93e04442c2fdc403740da644a15971 /src/game/SpellMgr.h | |
| parent | 2cdea49d81ce2bb4e19df594c019a42fb4ba0c5b (diff) | |
*Fix the bug that fishing bobber does not have correct position.
--HG--
branch : trunk
Diffstat (limited to 'src/game/SpellMgr.h')
| -rw-r--r-- | src/game/SpellMgr.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/game/SpellMgr.h b/src/game/SpellMgr.h index d19584514b0..a723e3415e4 100644 --- a/src/game/SpellMgr.h +++ b/src/game/SpellMgr.h @@ -178,6 +178,12 @@ inline float GetSpellMaxRange(SpellEntry const *spellInfo, bool positive) ? GetSpellMaxRangeForFriend(sSpellRangeStore.LookupEntry(spellInfo->rangeIndex)) : GetSpellMaxRangeForHostile(sSpellRangeStore.LookupEntry(spellInfo->rangeIndex)); } +inline float GetSpellMinRange(SpellEntry const *spellInfo, bool positive) +{ + return positive + ? GetSpellMinRangeForFriend(sSpellRangeStore.LookupEntry(spellInfo->rangeIndex)) + : GetSpellMinRangeForHostile(sSpellRangeStore.LookupEntry(spellInfo->rangeIndex)); +} /*struct DispelEntry { |
