mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2024-11-22 05:20:05 +00:00
Remove redundant initialization in nanoSummonHandler().
This commit is contained in:
parent
51a8cc8bdf
commit
756074cc62
@ -93,14 +93,13 @@ void NanoManager::nanoSummonHandler(CNSocket* sock, CNPacketData* data) {
|
||||
sNano nano = plr.plr.Nanos[nanoId];
|
||||
|
||||
// Send to other players
|
||||
for (CNSocket *s : PlayerManager::players[sock].viewable) {
|
||||
INITSTRUCT(sP_FE2CL_NANO_ACTIVE, pkt);
|
||||
INITSTRUCT(sP_FE2CL_NANO_ACTIVE, pkt1);
|
||||
|
||||
pkt.iPC_ID = plr.plr.iID;
|
||||
pkt.Nano = nano;
|
||||
pkt1.iPC_ID = plr.plr.iID;
|
||||
pkt1.Nano = nano;
|
||||
|
||||
s->sendPacket((void*)&pkt, P_FE2CL_NANO_ACTIVE, sizeof(sP_FE2CL_NANO_ACTIVE));
|
||||
}
|
||||
for (CNSocket *s : PlayerManager::players[sock].viewable)
|
||||
s->sendPacket((void*)&pkt1, P_FE2CL_NANO_ACTIVE, sizeof(sP_FE2CL_NANO_ACTIVE));
|
||||
|
||||
// update player
|
||||
plr.plr.nano = nanoId;
|
||||
|
Loading…
Reference in New Issue
Block a user