avoid send movement packet at death twice, cleanup

--HG--
branch : trunk
This commit is contained in:
silver1ce
2010-03-07 18:17:37 +02:00
parent 91b8ee104e
commit 9a8f10fa30
4 changed files with 15 additions and 17 deletions
-5
View File
@@ -1448,11 +1448,6 @@ void Player::setDeathState(DeathState s)
GetAchievementMgr().UpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_DEATH_AT_MAP, 1);
GetAchievementMgr().UpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_DEATH, 1);
GetAchievementMgr().UpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_DEATH_IN_DUNGEON, 1);
// For some reason movement packet is always to be issued on death
// send if not going to fall down
if (!IsFlying() || GetTransport())
SendMonsterMove(GetPositionX(), GetPositionY(), GetPositionZ(), 0);
}
Unit::setDeathState(s);