diff options
| author | maximius <none@none> | 2009-10-31 16:00:47 -0700 |
|---|---|---|
| committer | maximius <none@none> | 2009-10-31 16:00:47 -0700 |
| commit | 743578b81f297734162785fe2e2daa32eb5d8aad (patch) | |
| tree | 077059ac516c9cbf404ea69aacf39b488e24637d /src/game/Player.cpp | |
| parent | f5696bcca519a64c9d2ef3fcc365a52ead99e03b (diff) | |
*Reinit the iterator in each loop as the iter is removed from the list, in AuctionHouseObject::Update, by Trazom
*No longer disregard z/o in Map::CreatureRelocation, thanks Sisif
*Cleanup, and make Divine Storm default to m_caster is no unitTarget is available
*Some mtmaps optimization
--HG--
branch : trunk
Diffstat (limited to 'src/game/Player.cpp')
| -rw-r--r-- | src/game/Player.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp index 1ca70e1f7ae..4199e23c2e4 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -1252,7 +1252,7 @@ void Player::Update( uint32 p_time ) else { // prevent base and off attack in same time, delay attack at 0.2 sec - if(getAttackTimer(BASE_ATTACK) < ATTACK_DISPLAY_DELAY) + if (getAttackTimer(BASE_ATTACK) < ATTACK_DISPLAY_DELAY) setAttackTimer(BASE_ATTACK,ATTACK_DISPLAY_DELAY); // do attack @@ -1372,9 +1372,9 @@ void Player::Update( uint32 p_time ) } // not auto-free ghost from body in instances - #pragma omp critical(UpdateThreadSafety) if(m_deathTimer > 0 && !GetBaseMap()->Instanceable()) { + #pragma omp critical(UpdateThreadSafety) if(p_time >= m_deathTimer) { m_deathTimer = 0; @@ -1392,7 +1392,7 @@ void Player::Update( uint32 p_time ) SendUpdateToOutOfRangeGroupMembers(); Pet* pet = GetPet(); - if(pet && !IsWithinDistInMap(pet, OWNER_MAX_DISTANCE) && !pet->isPossessed()) + if (pet && !IsWithinDistInMap(pet, OWNER_MAX_DISTANCE) && !pet->isPossessed()) //if(pet && !IsWithinDistInMap(pet, OWNER_MAX_DISTANCE) && (GetCharmGUID() && (pet->GetGUID() != GetCharmGUID()))) RemovePet(pet, PET_SAVE_NOT_IN_SLOT, true); |
