mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2024-11-26 15:00:06 +00:00
Fix player revive packet carrying wrong values
Oops
This commit is contained in:
parent
872425640d
commit
b0aea27418
@ -735,9 +735,9 @@ void PlayerManager::revivePlayer(CNSocket* sock, CNPacketData* data) {
|
|||||||
|
|
||||||
// Response parameters
|
// Response parameters
|
||||||
response.PCRegenData.iActiveNanoSlotNum = activeSlot;
|
response.PCRegenData.iActiveNanoSlotNum = activeSlot;
|
||||||
response.PCRegenData.iX = plr->x;
|
response.PCRegenData.iX = move ? target.x : plr->x;
|
||||||
response.PCRegenData.iY = plr->y;
|
response.PCRegenData.iY = move ? target.y : plr->y;
|
||||||
response.PCRegenData.iZ = plr->z;
|
response.PCRegenData.iZ = move ? target.z : plr->z;
|
||||||
response.PCRegenData.iHP = plr->HP;
|
response.PCRegenData.iHP = plr->HP;
|
||||||
response.iFusionMatter = plr->fusionmatter;
|
response.iFusionMatter = plr->fusionmatter;
|
||||||
response.bMoveLocation = 0;
|
response.bMoveLocation = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user