mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2024-11-22 05:20:05 +00:00
No reason not to include the Academy packet in there
This commit is contained in:
parent
0f687cc6b3
commit
8afe175bd1
@ -190,14 +190,13 @@ static void sendNanoBookSubset(CNSocket *sock) {
|
||||
for (int i = id - pkt.elementOffset; id < NANO_COUNT && i < 10; id++, i = id - pkt.elementOffset)
|
||||
pkt.element[i] = plr->Nanos[id];
|
||||
|
||||
// TODO: add NANO_BOOK_SUBSET to Defines.c, so we can switch this to the new system later
|
||||
sock->sendPacket((void*)&pkt, P_FE2CL_REP_NANO_BOOK_SUBSET, sizeof(sP_FE2CL_REP_NANO_BOOK_SUBSET));
|
||||
sock->sendPacket(pkt, P_FE2CL_REP_NANO_BOOK_SUBSET);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
static void enterPlayer(CNSocket* sock, CNPacketData* data) {
|
||||
auto* enter = (sP_CL2FE_REQ_PC_ENTER*)data->buf;
|
||||
auto enter = (sP_CL2FE_REQ_PC_ENTER*)data->buf;
|
||||
INITSTRUCT(sP_FE2CL_REP_PC_ENTER_SUCC, response);
|
||||
|
||||
// TODO: check if serialkey exists, if it doesn't send sP_FE2CL_REP_PC_ENTER_FAIL
|
||||
|
@ -531,6 +531,11 @@ std::map<uint32_t, PacketDesc> Packets::packets = {
|
||||
PACKET(P_FE2CL_GM_REP_REWARD_RATE_SUCC),
|
||||
PACKET(P_FE2CL_REP_PC_ITEM_ENCHANT_SUCC),
|
||||
PACKET(P_FE2CL_REP_PC_ITEM_ENCHANT_FAIL),
|
||||
|
||||
#ifdef ACADEMY
|
||||
// Academy-specific
|
||||
PACKET(P_FE2CL_REP_NANO_BOOK_SUBSET),
|
||||
#endif
|
||||
};
|
||||
|
||||
std::string Packets::p2str(int val) {
|
||||
|
Loading…
Reference in New Issue
Block a user