From a22da32a511448b273ec3b4a3d620202cf3a35f9 Mon Sep 17 00:00:00 2001 From: maximius Date: Sat, 31 Oct 2009 16:44:14 -0700 Subject: *Correctly update negative aura duration at loading, thanks Sisif --HG-- branch : trunk --- src/game/Pet.cpp | 4 ++-- src/game/Player.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/game/Pet.cpp b/src/game/Pet.cpp index 6275bd8a75b..b5995120a9e 100644 --- a/src/game/Pet.cpp +++ b/src/game/Pet.cpp @@ -1189,10 +1189,10 @@ void Pet::_LoadAuras(uint32 timediff) // negative effects should continue counting down after logout if (remaintime != -1 && !IsPositiveSpell(spellid)) { - if(remaintime <= int32(timediff)) + if (remaintime/IN_MILISECONDS <= int32(timediff)) continue; - remaintime -= timediff; + remaintime -= timediff*IN_MILISECONDS; } // prevent wrong values of remaincharges diff --git a/src/game/Player.cpp b/src/game/Player.cpp index 4199e23c2e4..5733abb630d 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -15431,10 +15431,10 @@ void Player::_LoadAuras(QueryResult *result, uint32 timediff) // negative effects should continue counting down after logout if (remaintime != -1 && !IsPositiveSpell(spellid)) { - if(remaintime <= int32(timediff)) + if (remaintime/IN_MILISECONDS <= int32(timediff)) continue; - remaintime -= timediff; + remaintime -= timediff*IN_MILISECONDS; } // prevent wrong values of remaincharges -- cgit v1.2.3