From db3feafe4874614416f1481ab28b22543e250b04 Mon Sep 17 00:00:00 2001 From: KimLS Date: Sat, 14 Feb 2015 20:05:54 -0800 Subject: [PATCH] Fix for returning to bound zone you're already in --- zone/zoning.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/zone/zoning.cpp b/zone/zoning.cpp index cebe2bfea..5b60448ec 100644 --- a/zone/zoning.cpp +++ b/zone/zoning.cpp @@ -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. // - gmg->bind_zone_id = zoneID; + if(zone->GetZoneID() == zoneID) { + if((GetClientVersionBit() & BIT_SoFAndLater) && (!RuleB(Character, RespawnFromHover) || !IsHoveringForRespawn())) + gmg->bind_zone_id = 0; + else + gmg->bind_zone_id = zoneID; + } else { + gmg->bind_zone_id = zoneID; + } + gmg->x = x; gmg->y = y; gmg->z = z;