*Automatically revive players when they fall under the map.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-06-05 16:35:47 -05:00
parent f10d9916f1
commit e354594925
+1 -1
View File
@@ -4468,7 +4468,7 @@ void Player::RepopAtGraveyard()
AreaTableEntry const *zone = GetAreaEntryByAreaID(GetAreaId());
// Such zones are considered unreachable as a ghost and the player must be automatically revived
if(!isAlive() && zone && zone->flags & AREA_FLAG_NEED_FLY || GetTransport())
if(!isAlive() && zone && zone->flags & AREA_FLAG_NEED_FLY || GetTransport() || GetPositionZ() < -500.0f)
{
ResurrectPlayer(0.5f);
SpawnCorpseBones();