mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2024-11-22 13:30:06 +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];
|
sNano nano = plr.plr.Nanos[nanoId];
|
||||||
|
|
||||||
// Send to other players
|
// Send to other players
|
||||||
for (CNSocket *s : PlayerManager::players[sock].viewable) {
|
INITSTRUCT(sP_FE2CL_NANO_ACTIVE, pkt1);
|
||||||
INITSTRUCT(sP_FE2CL_NANO_ACTIVE, pkt);
|
|
||||||
|
|
||||||
pkt.iPC_ID = plr.plr.iID;
|
pkt1.iPC_ID = plr.plr.iID;
|
||||||
pkt.Nano = nano;
|
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
|
// update player
|
||||||
plr.plr.nano = nanoId;
|
plr.plr.nano = nanoId;
|
||||||
|
Loading…
Reference in New Issue
Block a user