mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2024-11-04 22:40:05 +00:00
Tweak Lair respawns slightly
* Respawn the player in the air, not on the ground * Do save the player's current instance, just to lessen the chance of validation not catching stale recall coords.
This commit is contained in:
parent
d03c4f109f
commit
0dd478b9f0
@ -506,7 +506,8 @@ void NPCManager::handleWarp(CNSocket* sock, int32_t warpId) {
|
|||||||
// save Lair entrance coords as a pseudo-Resurrect 'Em
|
// save Lair entrance coords as a pseudo-Resurrect 'Em
|
||||||
plr->recallX = Warps[warpId].x;
|
plr->recallX = Warps[warpId].x;
|
||||||
plr->recallY = Warps[warpId].y;
|
plr->recallY = Warps[warpId].y;
|
||||||
plr->recallZ = Warps[warpId].z;
|
plr->recallZ = Warps[warpId].z + RESURRECT_HEIGHT;
|
||||||
|
plr->recallInstance = instanceID;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (plr->iID == plr->iIDGroup && plr->groupCnt == 1)
|
if (plr->iID == plr->iIDGroup && plr->groupCnt == 1)
|
||||||
|
Loading…
Reference in New Issue
Block a user