aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormegamage <none@none>2009-06-05 16:35:47 -0500
committermegamage <none@none>2009-06-05 16:35:47 -0500
commite354594925f5c422898c27323d0c884c3de3bcf0 (patch)
treea9c39abef5fff811f17c18ec9d32cf91c914217e /src
parentf10d9916f13926ec00537dcf9b0cb809ced3b53a (diff)
*Automatically revive players when they fall under the map.
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/Player.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp
index ca498f49f3c..131d21910bf 100644
--- a/src/game/Player.cpp
+++ b/src/game/Player.cpp
@@ -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();