mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2024-11-05 06:50:04 +00:00
Fix level-up not triggering and using wrong packets
This commit is contained in:
parent
bc7f4883a2
commit
effbbd9a5e
@ -488,13 +488,12 @@ void MissionManager::updateFusionMatter(CNSocket* sock, int fusion) {
|
|||||||
plr->fusionmatter -= (int)MissionManager::AvatarGrowth[plr->level]["m_iReqBlob_NanoCreate"];
|
plr->fusionmatter -= (int)MissionManager::AvatarGrowth[plr->level]["m_iReqBlob_NanoCreate"];
|
||||||
plr->level++;
|
plr->level++;
|
||||||
|
|
||||||
INITSTRUCT(sP_FE2CL_REP_PC_CHANGE_LEVEL, response);
|
INITSTRUCT(sP_FE2CL_REP_PC_CHANGE_LEVEL_SUCC, response);
|
||||||
|
|
||||||
response.iPC_ID = plr->iID;
|
response.iFusionMatter = plr->fusionmatter;
|
||||||
response.iPC_Level = plr->level;
|
response.iLevel = plr->level;
|
||||||
|
|
||||||
sock->sendPacket((void*)&response, P_FE2CL_REP_PC_CHANGE_LEVEL, sizeof(sP_FE2CL_REP_PC_CHANGE_LEVEL));
|
sock->sendPacket((void*)&response, P_FE2CL_REP_PC_CHANGE_LEVEL_SUCC, sizeof(sP_FE2CL_REP_PC_CHANGE_LEVEL_SUCC));
|
||||||
PlayerManager::sendToViewable(sock, (void*)&response, P_FE2CL_REP_PC_CHANGE_LEVEL, sizeof(sP_FE2CL_REP_PC_CHANGE_LEVEL));
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// play the beam animation for other players
|
// play the beam animation for other players
|
||||||
|
Loading…
Reference in New Issue
Block a user