Fix player revive packet carrying wrong values

Oops
This commit is contained in:
Gent S 2020-11-25 20:30:43 -05:00
parent 872425640d
commit b0aea27418

View File

@ -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;