[7362] Use IN_MILISECONDS where appropriate, other cleanups. Author: VladimirMangos

--HG--
branch : trunk
This commit is contained in:
megamage
2009-03-02 16:53:50 -06:00
parent 61b999fd3a
commit b1677c901d
21 changed files with 97 additions and 87 deletions

View File

@@ -4009,7 +4009,7 @@ void Unit::RemoveAurasDueToSpellBySteal(uint32 spellId, uint64 casterGUID, Unit
// set its duration and maximum duration
// max duration 2 minutes (in msecs)
int32 dur = aur->GetAuraDuration();
const int32 max_dur = 2*MINUTE*1000;
const int32 max_dur = 2*MINUTE*IN_MILISECONDS;
new_aur->SetAuraMaxDuration( max_dur > dur ? dur : max_dur );
new_aur->SetAuraDuration( max_dur > dur ? dur : max_dur );