Fix for returning to bound zone you're already in

This commit is contained in:
KimLS 2015-02-14 20:05:54 -08:00
parent 9a78bac0d0
commit db3feafe48

View File

@ -587,7 +587,15 @@ void Client::ZonePC(uint32 zoneID, uint32 instance_id, float x, float y, float z
// If we are SoF and later and are respawning from hover, we want the real zone ID, else zero to use the old hack. // If we are SoF and later and are respawning from hover, we want the real zone ID, else zero to use the old hack.
// //
if(zone->GetZoneID() == zoneID) {
if((GetClientVersionBit() & BIT_SoFAndLater) && (!RuleB(Character, RespawnFromHover) || !IsHoveringForRespawn()))
gmg->bind_zone_id = 0;
else
gmg->bind_zone_id = zoneID; gmg->bind_zone_id = zoneID;
} else {
gmg->bind_zone_id = zoneID;
}
gmg->x = x; gmg->x = x;
gmg->y = y; gmg->y = y;
gmg->z = z; gmg->z = z;