diff options
author | megamage <none@none> | 2009-06-14 12:22:24 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-06-14 12:22:24 -0500 |
commit | 16be2ac9bbf855eeb1154a498b2f4d4e75695254 (patch) | |
tree | 7c545dd942ee3fccce03e1f964bb8a19a7c42b13 /src | |
parent | 43ea5bf4802f0458152dfe3173f721fdede3eae7 (diff) |
*Teleport player to home if player falls under the map and no close grave is available.
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/Player.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp index 9ecbdd6d478..54c86fa874a 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -4552,6 +4552,8 @@ void Player::RepopAtGraveyard() GetSession()->SendPacket(&data); } } + else if(GetPositionZ() < -500.0f) + TeleportTo(m_homebindMapId, m_homebindX, m_homebindY, m_homebindZ, GetOrientation()); } void Player::JoinedChannel(Channel *c) |