mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 05:21:29 +00:00
Fix for returning to bound zone you're already in
This commit is contained in:
parent
9a78bac0d0
commit
db3feafe48
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user