diff options
| author | QAston <none@none> | 2009-04-13 20:50:52 +0200 |
|---|---|---|
| committer | QAston <none@none> | 2009-04-13 20:50:52 +0200 |
| commit | f46d1b3b81e1d1b5cdca1d84f78fd9e39041a297 (patch) | |
| tree | ee15ae5b11299bdb39f2e0c45868dfd8d788db91 /src/game/Player.cpp | |
| parent | b972327979988d5221b51b22a120874107094324 (diff) | |
*Add some debug info to procflag
*Fix Sudden Death.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Player.cpp')
| -rw-r--r-- | src/game/Player.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp index 2d7d98579a8..ae14d5ebc30 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -16454,19 +16454,18 @@ void Player::RemovePet(Pet* pet, PetSaveMode mode, bool returnreagent) } } + pet->SavePetToDB(mode); + // only if current pet in slot switch(pet->getPetType()) { case POSSESSED_PET: pet->RemoveCharmedOrPossessedBy(NULL); - break; default: - pet->SavePetToDB(mode); + SetGuardian(pet, false); break; } - SetGuardian(pet, false); - pet->CleanupsBeforeDelete(); pet->AddObjectToRemoveList(); pet->m_removed = true; @@ -17988,7 +17987,7 @@ bool Player::canSeeOrDetect(Unit const* u, bool detect, bool inVisibleList, bool return false; } - if(u->GetVisibility() == VISIBILITY_OFF || u->m_invisibilityMask ) + if(u->GetVisibility() == VISIBILITY_OFF) { // GMs see any players, not higher GMs and all units if(isGameMaster()) |
