*Teleport player to home if player falls under the map and no close grave is available.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-06-14 12:22:24 -05:00
parent 43ea5bf480
commit 16be2ac9bb
+2
View File
@@ -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)