mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2024-11-26 06:50:06 +00:00
Fix other group members not respawning properly in Lairs
This commit is contained in:
parent
e02ef55844
commit
44fbb8e81f
@ -559,6 +559,12 @@ void NPCManager::handleWarp(CNSocket* sock, int32_t warpId) {
|
|||||||
if (otherPlr == nullptr || sockTo == nullptr)
|
if (otherPlr == nullptr || sockTo == nullptr)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
// save Lair entrance coords for everyone else as well
|
||||||
|
otherPlr->recallX = Warps[warpId].x;
|
||||||
|
otherPlr->recallY = Warps[warpId].y;
|
||||||
|
otherPlr->recallZ = Warps[warpId].z + RESURRECT_HEIGHT;
|
||||||
|
otherPlr->recallInstance = instanceID;
|
||||||
|
|
||||||
PlayerManager::sendPlayerTo(sockTo, Warps[warpId].x, Warps[warpId].y, Warps[warpId].z, instanceID);
|
PlayerManager::sendPlayerTo(sockTo, Warps[warpId].x, Warps[warpId].y, Warps[warpId].z, instanceID);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user